bring to front
-
I added a status bar and a panel to a form. I then set the panel's borderstyle to fixed3d (this way I can see all sides of the panel) and set the dock property to DockStyle.Fill. The problem is that the panel gets tucked underneath the status bar. This can be fixed by right clicking the panel and selecting 'bring to front'. Unfortunately I will be adding the panel dynamically, so I need a way acheive the same effect of 'bring to front' via code. Any help would be greatly appreciated. Thanks, Steve
-
I added a status bar and a panel to a form. I then set the panel's borderstyle to fixed3d (this way I can see all sides of the panel) and set the dock property to DockStyle.Fill. The problem is that the panel gets tucked underneath the status bar. This can be fixed by right clicking the panel and selecting 'bring to front'. Unfortunately I will be adding the panel dynamically, so I need a way acheive the same effect of 'bring to front' via code. Any help would be greatly appreciated. Thanks, Steve
Try:
myPanel.BringToFront();
TheBringToFront()
method is part of the Control class. Later, Nathan --------------------------- Hmmm... what's a signature? -
Try:
myPanel.BringToFront();
TheBringToFront()
method is part of the Control class. Later, Nathan --------------------------- Hmmm... what's a signature? -
I added a status bar and a panel to a form. I then set the panel's borderstyle to fixed3d (this way I can see all sides of the panel) and set the dock property to DockStyle.Fill. The problem is that the panel gets tucked underneath the status bar. This can be fixed by right clicking the panel and selecting 'bring to front'. Unfortunately I will be adding the panel dynamically, so I need a way acheive the same effect of 'bring to front' via code. Any help would be greatly appreciated. Thanks, Steve
Try changing the order or creation of the status bar and panel. -- LuisR ────────────── Luis Alonso Ramos Chihuahua, Mexico www.luisalonsoramos.com "Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein
-
Duh:eek:! I don't know why I thought bring to front could only be used from the IDE. Man, I feel stupid. Thanks Nathan
Not stupid.... Just overworked :eek: Glad, I could be of help. Later, Nathan --------------------------- Hmmm... what's a signature?
-
Try changing the order or creation of the status bar and panel. -- LuisR ────────────── Luis Alonso Ramos Chihuahua, Mexico www.luisalonsoramos.com "Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein