In this post we will see the small example of working with multiple panels in windows c# applications.
We will also see how to make the panels visible or invisible, change the location of a panel control programmatically at runtime .

for this, I am designing the form as shown in the image below,
Multiple Panels winforms
Multiple Panels Window Design

The form contains 3 panels panel1,panel3 and panel3 each panel contains a button and label in it.

In the button click code i am making the panels visible or invisible and changing the location of panels.
The c# code in the code behind file is as follows :
The VB.NET code in the code behind file is as follows:


Multiple Panels winforms demo
Demo : Multiple Panels winforms