I have a form, and one class
on the form, there is text field to display the messages
in the class
how can I display message on the form from the class function
on the form, there is text field to display the messages
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim a As myClass
a.DisplayMessage
End Sub
in the class
Code:
Public Class myClass
Sub DisplayMessage()
form.msg = "hello.. this is message from myClass"
End Sub
End Class