Open form and run event/sub

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.
 
P

Peter Proost

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top