MDI Parent with 3 controls and a MDIChild...

S

SpotNet

Hello NewsGroup,

I have a MDIParent form with a docked left treeview control, a splitter
control and a generic docked control on the right. Kind of looks like
Windows Explorer, though it's functionality is quite different. I have a
function where an MDIChild is activated, well attempted to do so. When I
call the MDIChild form, I get the form caption (on the MDIParent) of the
MDIChild and its' control menus but the client area still has the treeview,
splitter and right side control in the MDIParent view area.

With the MDIChild, I've called the Show() , BringToFront() methods, TopMost
= true; with the same result mentioned above. If used the SendToBack()
method on the 3 controls contained in the MDIParent, this shows the MDIChild
when called, but when the MDIChild is closed the treeview, splitter and
other control are invisible left with only the dark MDIParent client area. I
can see the 'long way' solution to this, before I implement it I would like
to ask if there is something I'm (obviously) missing or not doing correctly?
How can I make the MDIChild Form the top most form in this situation,
revealing the MDIParent forms' controls when its' closed. If the solution
lies in the Win32 API (for WinXP SP2) that's OK too.

Using WinXP SP2, VS .NET 2003 C# >NET Framework 1.1.

Thanks for your consideration NewsGroup.

Regards,
SpotNet.
 
N

Nathan Neitzke

This might be a ton of help or no help at all, but have you tried setting
the .Visible property on the controls to false?

Otherwise there is no way of having the child form on top of the controls
that I have heard of. I created an MDI app this past summer and ran into
these sorts of issues.

I think that first suggestion should work. Let me know if it does!

Take care.
 
S

SpotNet

Hello Nathan,

Indeed correct, all controls must (which is a shame) have their visible
property set to false when the MDIChild form display is required. From what
I have tried your also right in stating its' really the only way. The
sugestion does work. Thanks again Nathan.

Kind Regards,
SpotNet.

| This might be a ton of help or no help at all, but have you tried setting
| the .Visible property on the controls to false?
|
| Otherwise there is no way of having the child form on top of the controls
| that I have heard of. I created an MDI app this past summer and ran into
| these sorts of issues.
|
| I think that first suggestion should work. Let me know if it does!
|
| Take care.
|
| --
| Nathan
|
| | >
| > Hello NewsGroup,
| >
| > I have a MDIParent form with a docked left treeview control, a splitter
| > control and a generic docked control on the right. Kind of looks like
| > Windows Explorer, though it's functionality is quite different. I have a
| > function where an MDIChild is activated, well attempted to do so. When I
| > call the MDIChild form, I get the form caption (on the MDIParent) of the
| > MDIChild and its' control menus but the client area still has the
| > treeview,
| > splitter and right side control in the MDIParent view area.
| >
| > With the MDIChild, I've called the Show() , BringToFront() methods,
| > TopMost
| > = true; with the same result mentioned above. If used the SendToBack()
| > method on the 3 controls contained in the MDIParent, this shows the
| > MDIChild
| > when called, but when the MDIChild is closed the treeview, splitter and
| > other control are invisible left with only the dark MDIParent client
area.
| > I
| > can see the 'long way' solution to this, before I implement it I would
| > like
| > to ask if there is something I'm (obviously) missing or not doing
| > correctly?
| > How can I make the MDIChild Form the top most form in this situation,
| > revealing the MDIParent forms' controls when its' closed. If the
solution
| > lies in the Win32 API (for WinXP SP2) that's OK too.
| >
| > Using WinXP SP2, VS .NET 2003 C# >NET Framework 1.1.
| >
| > Thanks for your consideration NewsGroup.
| >
| > Regards,
| > SpotNet.
| >
| >
|
|
 

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