Link to home
Start Free TrialLog in
Avatar of fbk2000
fbk2000

asked on

Using a Panel in the Form Designer

Is there a way to use Panels the same way you use forms in the form designer environment.  What I mean is how do I design a panel (by dragging and dropping controls) and keep it as a separate component in the Solution Explorer.  
Avatar of ZeonFlash
ZeonFlash

I'm not sure that you can do that (but I could be wrong...wait for more answers from the others).  Why would you choose to use a solo panel, instead of a form?  You can make a form LOOK like a panel, if that's what you're driving towards.
Avatar of fbk2000

ASKER

I would like a main panel reference on the main form, and then many panels that can be swapped out by reference based on other decisions.
Hi ZeonFlash,

What you can do is design a few panels on a form and set thier visible property to false, then swap the visbilty when you need to show them.  I also specify the location of the panel so in design mode I can have a big form showing the panel tiled across the form and then in runtime they stack on top of each other.

I don't think you can add them to the solution explorer

Cheers!
ASKER CERTIFIED SOLUTION
Avatar of ZeonFlash
ZeonFlash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fbk2000

ASKER

and yet this is exactly what people are used to if they've ever developed in Java Swing or MFC.  I guess this is the best solution.  I'm probably too reliant on the WYSIWYG aspects of MS development environments anyway.