creating multiple panels

P

pfnus

Hi,

I want to display different forms when the buttons are clicked and all
the forms are having different controls on it. So instead of adding
new windows forms to the project, i enlarged the form and used many
panels on the same form, which i think is easier to manage.

However, i am having problems. Should i need to put the panels on the
same location on the design layout? i put the panels at different
places and it doesn't get displayed when i called panel2.visible if
panel2 is at the other corner on the form (the form is where i create
all the panels).

If i put all the panels on the same location at design layout, then
the panels lay on top of one another, some panels became partially
hidden when i did this, and those staying below also doesn't get
displayed even though i have put it to visible true., and those need
not be displayed set to false.

when can i see examples of using multiple panels on one form?? Is this
a better way than creating multiple forms??
 
L

Liam McNamara

In the case where you have the panels overlaying each other, after you set
visible to true did you try calling panel.BringToFront()?

--Liam.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top