H
hmoeller.privat
Excuse me for duping from
microsoft.public.dotnet.framework.windowsforms.controls, but that
groups seems to have too low a frequency for some answers to show
up...
One can very easily reproduce this behaviour:
1) Create a new Windows Forms project.
2) Add a MenuStrip from the Toolbox.
3) Add a "File" menu.
4) Add a menu item "Test1" below "File".
5) Add two submenu items "Test1.1" and "Test1.2" to the "Test1" menu.
6) Do 4) and 5) for a second menu, named "Test2". (Be sure to use
different names...)
7) Disable "Test1" (while leaving "Test2" enabled).
8) Start this application.
9) Open "File" menu and notice that Test1 is disabled and refuses to
show its submenu items.
10) Drag down to "Test2", which accordingly opens.
11) Drag back to "Test1" and notice its submenu opening up though it
is disabled.
When you extent this sample to call some MessageBox.ShowMessage with
the given menu item's Text property, you'll find out that those menu
items are even executable.
Is this a - probably well documented - bug or do I miss something very
basic?
microsoft.public.dotnet.framework.windowsforms.controls, but that
groups seems to have too low a frequency for some answers to show
up...
One can very easily reproduce this behaviour:
1) Create a new Windows Forms project.
2) Add a MenuStrip from the Toolbox.
3) Add a "File" menu.
4) Add a menu item "Test1" below "File".
5) Add two submenu items "Test1.1" and "Test1.2" to the "Test1" menu.
6) Do 4) and 5) for a second menu, named "Test2". (Be sure to use
different names...)
7) Disable "Test1" (while leaving "Test2" enabled).
8) Start this application.
9) Open "File" menu and notice that Test1 is disabled and refuses to
show its submenu items.
10) Drag down to "Test2", which accordingly opens.
11) Drag back to "Test1" and notice its submenu opening up though it
is disabled.
When you extent this sample to call some MessageBox.ShowMessage with
the given menu item's Text property, you'll find out that those menu
items are even executable.
Is this a - probably well documented - bug or do I miss something very
basic?