Answer the question
In order to leave comments, you need to log in
How to call RichTextBox from another class?
Hello everyone,
I have a procedure that needs to add data to a RichTextBox.
Public Sub insertLogHistory(messageStr As String)
Me.LogHistory.Text = Me.LogHistory.Text + vbCrLf + Date.Now + " - " + messageStr
End Sub
Dim FormClass As New Form1()
Public Function HelloWorld() As Boolean
FormClass.insertLogHistory("Hello world")
End Function
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question