Information générale
Catégorie:
Code, syntaxe and commandes
Titre:
MdiForm and control SendToBack problem?
Versions des environnements
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement