Advertisement
ledlight

methods connect through objects

Feb 5th, 2024
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.71 KB | Source Code | 0 0
  1. Public Class MyNewTextBox
  2.     Inherits TextBox
  3.  
  4.     Dim TextBox_User As New TextBox
  5.     Dim TextBox_Password As New TextBox
  6.     Public Sub New(Eindruecke As TextBox, DruckStress As TextBox)
  7.         Me.TextBox_User = Eindruecke
  8.         Me.TextBox_Password = DruckStress
  9.     End Sub
  10.     Public Property TextBox_Test As TextBox
  11.         Set(value As TextBox)
  12.             TextBox_User = value
  13.         End Set
  14.         Get
  15.             Return TextBox_User
  16.         End Get
  17.     End Property
  18.     Public Property My_TextBox_Test As TextBox
  19.         Set(value As TextBox)
  20.             TextBox_Password = value
  21.         End Set
  22.         Get
  23.             Return TextBox_Password
  24.         End Get
  25.     End Property
  26. End Class
  27.  
Tags: Memory forms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement