|
-
Jul 30th, 2006, 09:06 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Check Open and ACtive MDI CHild
hi,
As my thread subject, how to check open and Active Mdi Child?
Thanks
-
Jul 30th, 2006, 09:09 PM
#2
Frenzied Member
Re: Check Open and ACtive MDI CHild
have you tried using the activeform property of the mdi?
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Jul 30th, 2006, 09:19 PM
#3
Thread Starter
Addicted Member
Re: Check Open and ACtive MDI CHild
not yet,
Do you mind to tell how to "using" it?
-
Jul 30th, 2006, 10:10 PM
#4
Frenzied Member
Re: Check Open and ACtive MDI CHild
to unload the active mdi child, use this code
VB Code:
if not mdi.Activeform is Nothing then
unload mdi.ActiveForm
end if
you can create a menu that will list all the active windows in your mdi. just check the windowlist property of the menu. at runtime, it will list all the mdi child forms that you open and mark the active mdi child form with a check
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Jul 30th, 2006, 10:24 PM
#5
Thread Starter
Addicted Member
Re: Check Open and ACtive MDI CHild
I got it, but how to get all open MDIchild form ? just like in window list property.
-
Jul 31st, 2006, 02:34 AM
#6
Re: Check Open and ACtive MDI CHild
VB Code:
Dim F As Form
For Each F In Forms
If F.MDIChild Then
' It's a loaded MDIChild form
End If
Next F
-
Jul 31st, 2006, 02:52 AM
#7
Thread Starter
Addicted Member
Re: Check Open and ACtive MDI CHild
Thank's d3gerald, bushmobile..
I got it all now
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|