PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Menus on multiple forms
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Menus on multiple forms
![]() |
Menus on multiple forms |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

