Control form from another form

Gabriell

Newcomer
Joined
Jan 21, 2003
Messages
3
How can we control another form from another form? I mean we control form A from from B. For example, if we click button OK on form A, the action will occur on form B.
 
You will need to keep a reference to form B on your form A.

You will also need to create a public/friend function/property on your Form B that can be called from the Button Click event on Form A.

Keep a reference by:

Visual Basic:
'this declaration must be on Form A
Private FormB as Form = new Form()

Hope this is what you meant..
 
Back
Top