Question How to add multiple panels at the same location

ukreddy

New member
Joined
Dec 12, 2016
Messages
2
Programming Experience
5-10
I am trying create an executable to install multiple installers.

For that I am creating some screens in Visual Studio and as we click on next button, the elements should hide and new elements should popup.
Foe that reason, I am using panels.
And all these panels should be on same location to change the screens.

This is my first panel.
1.PNG

When add a new panel all the elements are being added to it.So I removed those add sections manually.Now all are in the first panel only.
But the panel 2 is hiding all the elements even if I hide the panel2.visible = false.Like below.

2.PNG

Any suugestion on this??
How to make the panel1 elements visible.?
 
To place a panel on top of another panel, I find it easier to not use the mouse to drag them to the same spot on the form but rather place the first panel where all of them will be then copy the Location property, select all of the other panels and past the value into their Location properties.
Same thing for the Size property.

Then in code all you need to do is keep track of where the user is in the "wizard" and whenever the next (or previous) buttons are clicked simply hide all the panels and show only the that's needed. I fins using an integer to be easiest because that's a simple +1 or -1 to it when knowing which direction the user is going.
 

Latest posts

Back
Top Bottom