in form2 add either "Public" or "Friend" before the sub (Friend is recamended)
then simply use the variable for form2 to call that sub:
VB.NET:
Private frm2 As New Form2
Private Sub Button1_Click (...) Handles Button1.Click
frm2.Show()
End Sub
Private Sub Button2_Click (...) Handles Button2.Click
frm2.abc()
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.