How to get handel of the active model form?

F

feng

I have a MDI parent form that opens multiple child forms
and some of these child forms may open a model form.

My question, if I have a model form currently open on top
of all other forms, how do I get the handel of it? I tried
me.ActiveForm from the MDI parent form, but it doesn't
work for me.

Thanks.
 
H

Herfried K. Wagner [MVP]

* "feng said:
I have a MDI parent form that opens multiple child forms
and some of these child forms may open a model form.

My question, if I have a model form currently open on top
of all other forms, how do I get the handel of it? I tried
me.ActiveForm from the MDI parent form, but it doesn't
work for me.

'Me.ActiveMdiChild.Handle'.
 
F

feng

This modol form is not a MDI child and that is my problem.
This is just a modol form opened by one of the MDI child.

Any ideas?

Thank you so much for your help!
 
H

Herfried K. Wagner [MVP]

* "feng said:
This modol form is not a MDI child and that is my problem.
This is just a modol form opened by one of the MDI child.

\\\
MsgBox(Form.ActiveForm.Handle.ToString())
///
 

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

Top