p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional C#, 2nd and 3rd Editions (http://p2p.wrox.com/forumdisplay.php?f=44)
-   -   Child form is not showing on the top (http://p2p.wrox.com/showthread.php?t=50126)

shweta14 November 10th, 2006 02:57 AM

Child form is not showing on the top
 
hi, i have one mdi form and i child form. i have placed some controls on the mdi form now when the child form is showing its displaying in the back of the mdi controls. Is there any way by which i can ge it in the front. I have used bring to front and top most etc. ?Is there any one who can help me. THnx in advance



shobhit_ra January 31st, 2007 06:31 AM

hello shweta
  MDI form is just a transparent container thats why all the controls are visible on the child form.

you can do two things.
1. add a new form and place the controls on it that u want to place on the mdi. then create object of this form and call it on the form load event of the mdi form.

2. Place the static void Main() method of the mdi on any form of the project and change the name of the form in Application.run(new form1)
according to the current form. then this form will be displayed first with the controls.






All times are GMT -4. The time now is 09:05 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.