Clear Form1 and add new things, such as the game maker's room system

0

Oops! How do I clean a form and put new elements in it? For example: Something like an installation screen when we click Next.

Edit1: For example, this screen: Flipthisscreenbyclickingonanydollicon: So that one is not on top of the other, simply alternate.

    
asked by anonymous 10.07.2016 / 18:44

1 answer

1

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.

        
    10.07.2016 / 19:14