C
Colin
How do you pass variables in one form to another in
VB.NET?
I've looked through MSDN and three books but can't find
how to.
VB.NET?
I've looked through MSDN and three books but can't find
how to.
* "Colin said:How do you pass variables in one form to another in
VB.NET?
I've looked through MSDN and three books but can't find
how to.
-----Original Message-----
Add a public property to your 2nd form:
\\\
Private m_UserName As String
Public Property UserName() As String
Get
Return m_UserName
End Get
Set(ByVal Value As String)
m_UserName = Value
End Set
End Property
///
Then set this property:
\\\
Dim f As New FooForm()
f.UserName = "Foo Bar"
f.Show()
///