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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing Form

Status
Not open for further replies.

rskiko

Programmer
Mar 17, 2004
10
TN
Hi,
Is there a possibility to show a form ( Form1) into a panel declared on another Form ( MainForm ).
Thanks in advance.
 
no... but you can always use a User Control in which you simply copy paste all the components and methods of your form (the one you want to show in another form) and then you add the user control to that pannel (it's a great way of reusing components and logic assigned to them)
 
Right - what you would need to do is set the parent property of the form to the other form, but since Form doesn't have a parent property...

You might investigate making the parent form a MDI form, which can host a large number of child forms.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top