Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MdiForm and control SendToBack problem?
Message
From
10/11/2011 03:36:08
 
 
To
09/11/2011 22:36:15
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01528542
Message ID:
01528545
Views:
35
>Hi all,
> i use vb.net , mdi form. In main page isMdiContainer = true, backgroundImage , label1 use to diplay current time, label2 use to display login userinformation
> If i onclick ToolStripMenuItem will show the subform, in this time i set the subform.BringToFront but it still behind all of the control(label1 and label2).
>if i set all of control to SendToBack then will lose the control(label1 and label2).
>How can i do, i want to subForm can BringToFront ? Thank you .
>
>Anyone know how solve this problem, and i see the othe relate post. Other peole say, MDI isn't supposed to handle that kind of controls it self.
>The controls on the MDI are allways on top.
>For example, if you dock a panel on one side of the MDI Form, every single child form will never stand on top of it...
>My advise to you is for you to put those controls on a borderless form and make it an MDIChild. That you you can play with BringToFront & SendToBack
>
>
>But i try to add a panel and dock click right side. the control still over the subform.

Let me try again:

1. A MdiParent form has a *client area* which normally consists of the whole form but excluding the title bar.

2. If you add a control (e.g. a Panel containing other controls) and dock it in the MDI form then it will *not* be part of the client area - i.e. the client area will consist of the remaining space.

3. When you add a child form to an MDI parent it is only visible in the parent form client area. Parts if the child form may be hidden by any docked controls (eg a menu strip) but in those cases scroll bars appear in the client area.

4. If you add un-docked controls to the client area of a MDIParent they will *always* be on top of any child window.

Whatever solution you go for it will need to accord with the above.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform