M
Mike Caputo
In VB.NET, need to be able to access certain properties on my main form from
other forms. These are properties that may be changed by the user, so I
have to be able to get to them throughout the application. How can I access
the current instance of a specific Form object? For example:
Class frmOne
.......
Public Readonly Property XYZ() as String
Get
Return Me.txtXYZ.Text
End Get
End Property
End Class
Class frmTwo
.......
Sub GetXYZProperty()
Dim XYZ as String = {frmOne ?}.XYZ
End Sub
End Class
Thanks in advance,
Mike
other forms. These are properties that may be changed by the user, so I
have to be able to get to them throughout the application. How can I access
the current instance of a specific Form object? For example:
Class frmOne
.......
Public Readonly Property XYZ() as String
Get
Return Me.txtXYZ.Text
End Get
End Property
End Class
Class frmTwo
.......
Sub GetXYZProperty()
Dim XYZ as String = {frmOne ?}.XYZ
End Sub
End Class
Thanks in advance,
Mike