rookie C# equivalent for Java JPanel question..

  • Thread starter Thread starter Derrick
  • Start date Start date
D

Derrick

I want to create a form with a few text boxes, labels, etc, and then use
that form on a tab control, and re-use it as a stand alone dialog, can you
drop forms onto forms and into dialogs like you can in Java?

Thanks in advance!

Derrick
 
Derrick said:
I want to create a form with a few text boxes, labels, etc, and then use
that form on a tab control, and re-use it as a stand alone dialog, can you
drop forms onto forms and into dialogs like you can in Java?

Hi Derrick,

It sounds like a Control would be a good solution. Just run the VS.NET
Windows Control Library wizard and populate it with the controls you need.
That way, you can drag and drop it wherever you need. Here's a little more
information on controls:

http://samples.gotdotnet.com/quickstart/winforms/

Joe
 
What you're looking for is a "UserControl". Add a user control item to your
project, and you can add items to it just like it was a form. You can then
use this usercontrol on multiple forms (or even in multiple user controls)
 
I think your best best is to make a User control. Then you can host the user
control on whatever forms you may want, or panels on forms.
 
Back
Top