By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,184 Members | 1,558 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,184 IT Pros & Developers. It's quick & easy.

how to know if mdiparent has open childforms?

nev
100+
P: 251
how to code this? i don't wanna check each childforms if they are visible or not.

i tried...

if mdiparent.hasopenchildforms then
msgbox("childform/s open")
end if

of course this will not work because there is no method like that.
Nov 13 '07 #1
Share this Question
Share on Google+
4 Replies


Shashi Sadasivan
Expert 100+
P: 1,435
how to code this? i don't wanna check each childforms if they are visible or not.

i tried...

if mdiparent.hasopenchildforms then
msgbox("childform/s open")
end if

of course this will not work because there is no method like that.
have you tried MdiChildren? [:D]
It will give you a list of forms owned by the MDi Form. However you might want to make your own method to return a list of non visible child forms.

cheers
Nov 13 '07 #2

nev
100+
P: 251
nev
problem solved (i think).

i did a little something like this...

if me.activemdichild is nothing then
'place code here
end if
Nov 13 '07 #3

Shashi Sadasivan
Expert 100+
P: 1,435
problem solved (i think).

i did a little something like this...

if me.activemdichild is nothing then
'place code here
end if
Sounds good.
except that code is in the MDIParent form, right?
Nov 13 '07 #4

nev
100+
P: 251
nev
Sounds good.
except that code is in the MDIParent form, right?
thank you for he input.
Jan 28 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.