You can simulate this using a TabControl.
Change the ItemSize
and SizeMode
properties of TabControl
tabControl.ItemSize = new Size(0, 1);
tabControl.SizeMode = TabSizeMode.Fixed;
You can also change using the Properties window in form design.
Probably this will leave a border in the corner of the TabControl, you can change the Appearance
property to make that border disappear.
tabControl.Appearance = TabAppearance.FlatButtons;
Create the button events by changing the selected TabPage.
private void btAnterior_Click(object sender, EventArgs e)
{
tabControl.SelectedTab = tabPage1;
}
private void bProximo_Click(object sender, EventArgs e)
{
tabControl.SelectedTab = tabPage2;
}
Note: You can use the document outline window (Ctrl + W, U) to change the viewable design-time tab.