I have the following code in my Form1 wherein I will set Value to a property:
Dim login As New logInSession
Dim k As String
login.saveLogInfo = unameTB.Text
and this is my code from my logInSession class where I will store the value:
Private logInfo As String
Public Property saveLogInfo() As String
Get
Return logInfo
End Get
Set(ByVal value As String)
logInfo = value
End Set
End Property
Now, I want to get back out the value to my Form2. The problem is it doesn't return any value. The following is my code:
Dim login As New logInSession
Dim k As String
k = login.saveLogInfo
MsgBox(k)
Can you tell me what's the problem with my codes?