Clean Form1 and add new things like the game maker’s Rooms system

Asked

Viewed 37 times

0

Oops! Guys, how do I clean a form and put new elements inside? For example: Something like an installation screen when we click Next.

Edit1: For example, this screen: Room0 Flip this screen by clicking on a doll icon: Room1 So that one is not on top of the other, simply change.

  • 1

    Please be more specific. Cleaning a form is form.Components.Clear(), but it doesn’t seem that’s what you want...

  • I will edit and show a project I made in the game maker

  • All right, I’ve done the editing.

  • Create a tabcontrol and change tabs by clicking, or create multiple panels and change the visibility. These are the only ways.

  • But neither of the two forms is similar to what I want, Tabcontrol would be if it had a way to remove the tabs that are on top

  • And who said there’s no way? =) I’ll set an example for you.

  • Beauty thank you aew, I stand by

Show 2 more comments

1 answer

1


You can simulate this using a Tabcontrol.

  1. Change the properties ItemSize and SizeMode tabcontrol

    tabControl.ItemSize = new Size(0, 1);
    tabControl.SizeMode = TabSizeMode.Fixed;
    

    You can also switch using the Properties window in the form design.
    This will probably leave a little edge in the corner of Tabcontrol, you can change the property Appearance to make that little pot disappear.

    tabControl.Appearance = TabAppearance.FlatButtons;
    
  2. Create 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 window Document Outline (Ctrl+W, U) to change the visual tab at design time.

  • But still the flaps remain, they were to be invisible

  • So you did something wrong, because for me nothing appears. It has how to show a print?

  • https://scontent.fcpv1-1.fna.fbcdn.net/v/t35.0-12/13589097_1005138562937900_351858082_o.png?oh=5196e21e5b4f1c7ee2fa24f91a54ddea&oe=57857B74

  • You altered the properties I told you about?

  • Through the real estate screen, but what you did was hide, I really want that does not exist?

  • How so does not exist? They won’t show up, that’s enough. There’s no other way, young man.

  • Ow! I learned how to use the Right Panel! I solved my problem :D

  • Thanks to you <3

Show 3 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.