PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Menus on multiple forms

Reply

Menus on multiple forms

 
Thread Tools Rate Thread
Old 17-03-2004, 08:56 AM   #1
Christian Westerlund
Guest
 
Posts: n/a
Default Menus on multiple forms


I have multiple child forms which I want to have the same menu as
my MainForm.
I do .Show on each child when I want them to be visible but then the
menu from the Main form disappears.

If I try to set the childs .Menu property to the main forms mainmenu it
disappears from the main form and appears on the child instead.

One soloution would be to set the Menu property every time a form gets
visible and take the mainmenu from the previosly shown form but that
seems to be a lot of code for something that should be a lot easier to
accomplish.

Any help is appreciated.

/Christian
  Reply With Quote
Old 19-03-2004, 01:22 PM   #2
Nick Randolph
Guest
 
Posts: n/a
Default Re: Menus on multiple forms

Christian

One option would be to use inheritance to make all the child forms inherit
identical menus...

Nick Randolph
Micorsoft MVP - Windows Mobile Devices

"Christian Westerlund" <christian.westerlund@comhem.se> wrote in message
news:OJ5RG3$CEHA.3240@TK2MSFTNGP10.phx.gbl...
> I have multiple child forms which I want to have the same menu as
> my MainForm.
> I do .Show on each child when I want them to be visible but then the
> menu from the Main form disappears.
>
> If I try to set the childs .Menu property to the main forms mainmenu it
> disappears from the main form and appears on the child instead.
>
> One soloution would be to set the Menu property every time a form gets
> visible and take the mainmenu from the previosly shown form but that
> seems to be a lot of code for something that should be a lot easier to
> accomplish.
>
> Any help is appreciated.
>
> /Christian



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off