Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parent & Child Forms

Status
Not open for further replies.

SHAWTY721

Programmer
Aug 16, 2007
116
US
I am creating an windows application using vb.net 2005, and I have a parent form which I want to be able to load various child forms onto depending on which one the user selects. I have the form created and the child forms created and they display on the parent form. I am running into an issue trying to bring those forms to focus when they are selected. They currently appear behind what is being displayed on the parent form. Is there a way to get the information to be the main focus.
 
There might be an easier way, but I got it to work by adding the child form to a panel's collection instead of the parent form itself. You can then use Panel.BringToFront(). However, it's never really been an issue because any time I have used a child form in this manner, its not intended to cover up any other controls.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top