Hello, I'm trying to create different pages in the same form, let's say I'll have several labels like the following:
Then when I give Main the panel will be white. But when you give it to label1, the panel will be dark like this:
The code will simply be a form like this:
namespace Espacio
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
void Form1Load(object sender, EventArgs e)
{
}
}
}
In short, I will have two panels. When I give the label Main - > It will show me my first panel. When I give it to label2 - > will show me my second panel.
With tab I am left as follows:
and what I want is that tab1 tab2 is on the left so I use panels and labels. What you do not understand is how to superimpose one panel on another according to the label that you click to change it and show me another.