Open form and run event/sub

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I open a MDI childform from it's parent form and then programmically
run an event or procedure from the childform. ie. run the click event code
of the child form's command button.
 
Hi create a public sub on the child form with the code you want to see
executed, and then do something like this where you want to call the child
form (for example menu click on parent form)

dim objChild as new YourchildForm
objChild.MdiParent = me
objChild.Show
objChild.YourPublicSub

Hth peter
 
Back
Top