|
-
Mar 29th, 2002, 11:14 AM
#1
Thread Starter
Addicted Member
MDI Form with child forms - External form/window to interact with child forms?
Hi,
I am creating an application which has an MDI Form containing 2 child forms.
I need to somehow create either a floating toolbar or some sort of external form (ie. not a child form) which is able to interact with the child forms.
Is this possible? If so, any feedback on how to create it would be much appreciated 
Thanks,
Chris
-
Mar 29th, 2002, 11:39 AM
#2
You simply create the new form and load it like this:
VB Code:
FormName.Show vbModeless, frmMDI
This will keep the form above the MDI form even when it lose focus.
You can then reference the active child form in this manner:
VB Code:
frmMDI.ActiveForm.Caption = "Hello, the caption for this form has just been changed"
Best regards
-
Mar 29th, 2002, 11:45 AM
#3
or you can add toolbars/coolbars (which are floatable) directly to the MDI form
-
Mar 29th, 2002, 11:55 AM
#4
Thread Starter
Addicted Member
Originally posted by kleinma
or you can add toolbars/coolbars (which are floatable) directly to the MDI form
That sounds perfect! How do I add a floatable toolbar/coolbar?
I have tried adding a toolbar via the Project -> Components route, but it seems I am only able to add one which docks itself to the top of the MDI window.
A Floatable TB would be great 
Any ideas?
Thanks.
-
Mar 29th, 2002, 11:58 AM
#5
the coolbar control is found in components under Microsoft Windows Common Controls-3 6.0 (sp5)
i don't think you have to have sp5 for VB.. but if you don't i would recommend it anyway
coolbars are the new toolbars the MS uses.. like the toolbars that VB uses that you can doc or drag around
-
Mar 29th, 2002, 12:02 PM
#6
Thread Starter
Addicted Member
Found it, thanks 
I am having a bit of trouble getting it to float though. It appears I can only add it as a docked toolbar.
Any ideas?
Thanks.
-
Mar 29th, 2002, 12:16 PM
#7
The Toolbar and the Rebar (Coolbar) controls that comes with VB can't float by default.
-
Mar 29th, 2002, 12:24 PM
#8
Thread Starter
Addicted Member
Originally posted by Joacim Andersson
The Toolbar and the Rebar (Coolbar) controls that comes with VB can't float by default.
I see. Is it possible to get them to float at run-time?
Thanks.
-
Mar 29th, 2002, 12:26 PM
#9
No you have to add them to a seperat form and show that form in the way I showed you in my first post.
Best regards
Joacim Andersson
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
|