E
emmeicsics
I don't understand if this behaviuor is by design or I'm missing
something.
I have a form with 2 panels.
Inside panel1 there's a button which, when clicked, hides panel1 and
shows panel2.
Inside panel2 there's another button which, when clicked, hides panel2
and shows panel1.
The code is something like this:
mypanel1button_click(object sender, System.EventArgs e)
{
this.panel2.BringToFront();
}
mypanel2button_click(object sender, System.EventArgs e)
{
this.panel1.BringToFront();
}
I tried using hide() and show() instead of bringToFront() to no avail.
What's wrong with my code?
thank you
maxx
something.
I have a form with 2 panels.
Inside panel1 there's a button which, when clicked, hides panel1 and
shows panel2.
Inside panel2 there's another button which, when clicked, hides panel2
and shows panel1.
The code is something like this:
mypanel1button_click(object sender, System.EventArgs e)
{
this.panel2.BringToFront();
}
mypanel2button_click(object sender, System.EventArgs e)
{
this.panel1.BringToFront();
}
I tried using hide() and show() instead of bringToFront() to no avail.
What's wrong with my code?
thank you
maxx