Ben
Ben

Reputation: 62454

Menu Items that change the application's view

I've been all up and down this tutorial.

I can't for the life of me figure out how when my app loads to have 1 screen, then when a menu item is clicked to show another screen. I get the idea of having multiple forms, but is that the solution I need here?

From what I've read I understand new forms to be essentially new windows. If that's right, that doesn't sound like what I need.

My users start off with a blank window other than a menu (I'm gonna fill it in later), but I want for File -> Settings to load a settings form. Ideally not in a new window.

Upvotes: 1

Views: 117

Answers (1)

Rob
Rob

Reputation: 517

Its a MDI window. They are window containers of other windows.

You create a parent form, and then you change which child form is the active form on the menu item click events. This requires you make a parent MDI form, and a child MDI form for each of the different views you want of your document. The menu items then switch which child MDI form is the active one.

Upvotes: 1

Related Questions