-
You can put any functions you want both forms to access in a module.
You can create a class that both forms can access.
You can declare a public function in form B. Set a reference to form B in form A. Then access the function through the reference.
I think either of the first two ideas are better than the third.
:)
Hope this helps.
-
Thanks, and I like the method 3....
But how to get it done? Can you show me with some sample code?
Thanks a lot
Andy
-
Try this. :)
Inside Form2---
Public Sub MySub()
'Some code here
End Sub
Inside Form1----
Dim Frm as new Form2
Frm.MySub