johnadonaldson
Well-known member
- Joined
- Nov 9, 2005
- Messages
- 48
- Programming Experience
- 10+
Now I have a different but similar problem.
I want the second window to call a subroutine in the main form.
In the second form I setup
Private fOMain as Form1
PrivateSub TermSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TermSend.Click
fOpMain.SendRS232()
EndSub
if Form1 I have
PublicSub SendRS232()
Me.TextBox2.Text = "hello"
EndSub
When I click the TermSend button nothing happens on Textbox2 on the main form.
I want the second window to call a subroutine in the main form.
In the second form I setup
Private fOMain as Form1
PrivateSub TermSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TermSend.Click
fOpMain.SendRS232()
EndSub
if Form1 I have
PublicSub SendRS232()
Me.TextBox2.Text = "hello"
EndSub
When I click the TermSend button nothing happens on Textbox2 on the main form.