R
Rob T
I have a simple form with a text box in it that I'm using to show the
history of events in my program. My main form references a bunch of class
modules to execute various routines. I would like these routines to be able
update the textbox in the main form but am at a loss on how to do it.
(example below)
I'm sure this is an easy solution.....I just don't spend enough time working
in the vb.net world.
Thanks.
-----------------------------------------------------------
Example:
Main Form name - Engine.vb and has a textbox called boxHistory
Private Sub Engine_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim myCode As New CommonCode()
boxHistory="Hello"
myCode.DoSomething
End Sub
The class file is called CommonCode.vb with a routine called DoSomething
Public Sub DoSomething()
'End result would be to update boxHistory
boxHistory.text &= " World"
End Sub
history of events in my program. My main form references a bunch of class
modules to execute various routines. I would like these routines to be able
update the textbox in the main form but am at a loss on how to do it.
(example below)
I'm sure this is an easy solution.....I just don't spend enough time working
in the vb.net world.
Thanks.
-----------------------------------------------------------
Example:
Main Form name - Engine.vb and has a textbox called boxHistory
Private Sub Engine_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim myCode As New CommonCode()
boxHistory="Hello"
myCode.DoSomething
End Sub
The class file is called CommonCode.vb with a routine called DoSomething
Public Sub DoSomething()
'End result would be to update boxHistory
boxHistory.text &= " World"
End Sub