G
Guest
--button on the form
Private Sub btnClsTest_Click(...) Handles btnClsTest.Click
Dim a As New clsTest
End Sub
-------------------------------------------------------
'--property on my form
Public Property captionText() As String
Get
End Get
Set(ByVal Value As String)
Me.Text = Value
End Set
End Property
------------------------------------------------
Public Class clsTest
Public Sub New()
Dim frm As New Form1
frm.captionText = "test from clsTest"
End Sub
End Class
How can I make the text "test from clsTest" in the class constructor show
up in the caption bar of the form that instantiates this class?
Thanks,
Rich
Private Sub btnClsTest_Click(...) Handles btnClsTest.Click
Dim a As New clsTest
End Sub
-------------------------------------------------------
'--property on my form
Public Property captionText() As String
Get
End Get
Set(ByVal Value As String)
Me.Text = Value
End Set
End Property
------------------------------------------------
Public Class clsTest
Public Sub New()
Dim frm As New Form1
frm.captionText = "test from clsTest"
End Sub
End Class
How can I make the text "test from clsTest" in the class constructor show
up in the caption bar of the form that instantiates this class?
Thanks,
Rich