Hi all,
Now i'm facing a problem when i passing a variable from one form to another form, i can't get the value.
I used the method of property.
vb code
Form A
Form B --> Try to get value from Variable form ACode:Private UserID as string Private Sub New() Me.User_ID = textbox1.text End Sub Public property User_ID() as string Get Return UserID End Get Set (ByVal Value As String) UserID = Value End Set end property
Code:dim frm as new FormA textbox1.text = frm.User_ID




Reply With Quote