473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

how to know if mdiparent has open childforms?

nev
251 100+
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
4 1745
Shashi Sadasivan
1,435 Expert 1GB
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
251 100+
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
1,435 Expert 1GB
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
251 100+
Sounds good.
except that code is in the MDIParent form, right?
thank you for he input.
Jan 28 '08 #5

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

Similar topics

0
by: Duncan | last post by:
Dear friends, I have a MDIform in vb.net with some images and buttons on it. This works fine unless I open a MDIChild. The child is being displayed between the images and buttons and the parent...
2
by: Terrance | last post by:
I'm hoping that there's someone out here that can help me with a coding problem. Here is the scenerio: I have a MdiParent Form on this MdiParent form there is a listview control and several text...
1
by: pei_world | last post by:
hi there, as I said, I have a MDIparent and childforms. Now I create a new class file which is not belong to childforms. My problem is how can I access to the MDIparent's public control(ie:a label...
26
by: Paul Mars | last post by:
FormParent load opens FormChildA. FormChildA btn click opens FormChildB. (FormChildA and FormChildB are both children of FormParent) (FormChildA and FormChildB are different forms) Problem:...
4
by: Ben dotNet | last post by:
FormA is the mdiParent FormB is the child FormC is the Form that is used to open FormB How do I open FormB from FormC (that is not a child) so that it it's mdiParent is FormA? Thanks, --Ben
2
by: Joachim | last post by:
1. I am sure there is a way to close the ChildForm from ParentForm Example I have several (song) albums. Each album has several songs So.... Album is my ParentForm and each song has each...
2
by: andreas | last post by:
Hi, How to minimize with code all de childforms in the parentform. I want to put a menuitem with text "MInimize all" in a parent form to minimize all the child forms in the parent form at once....
2
by: LB | last post by:
How may i do to know if a form is already open ?? In vb6, i use Forms but i don't know how to do this in vbnet. Thank you!!!
3
by: The Mad Ape | last post by:
Hi Whenever I open a form and want to check for an existence of the form I use the following code: Dim frm As Form For Each frm In Me.MdiParent.MdiChildren If TypeOf frm Is Form17 Then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.