if I want to build any windows application!!!!

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I want to have one main menu, how can I show it in all forms??
Is it I need to use the MDI menu or??
 
If you want each forms to have its own copy of the same menu, then the
easiest way would be to create a new Windows Form, call it "BaseMenuForm" or
something similar, put the menu there, add handlers for the menu items'
events, and otherwise leave that form alone -- don't put any buttons or
panels or anything else on it. Then derive all your other forms from
BaseMenuForm (by creating a new Inherited Form for each) and put your
controls and other behaviors on the inherited forms. That way you'll share
the same menu among multiple form classes.
 
and how can I call the other form
under the main menu??
for example
I have a form with menu in a 800 x 600 size
how can I display all the form under this baseMenu??
 
MDI is different from having the same menu on each window. Which do you
want? Lots of little windows, each with its own menu, each existing
independently (like opening multiple Exporer folder windows)? That's what
you originally seemed to be describing. Or one big window with a menu bar,
and lots of little menuless windows inside it (MDI)?

If you want MDI, then take a look at the documentation for the
Form.MdiParent property. It has plenty of info and a source-code example.
 
Back
Top