S
Seigfried
I've been reading the Microsoft Press book "Visual Basic .NET Step by Step"
(Michael Halvorson). I've noticed something about menu items while reading
chapter 4 that I didn't know before. Please try this:
1 - Create a new Windows Application
2 - Add a MainMenu component and then a single top level menu and two menu
items under it. Mine looked like this:
Whatever <- Top Level menu item
A Menu Item <- First sub menu item
B Menu Item <- Second sub menu item
3 - Add MsgBox statements to the Click events for each sub menu items to
indicate when the event is executed.
DO NOT add access key identifiers (&) or do anything else.
Now run the application. Notice that if you ...
Press and release the Alt key
press W, then A, you get the first MsgBox
press W, then B, you get the second MsgBox
You don't need to specify access keys. The first letter of the string in the
Text property is used!
How long has this been the default behavior?
Also ... does anyone know how to contact Michael Halvorson to ask him about
this?
(using Windows XP, VB.NET 2003)
(Michael Halvorson). I've noticed something about menu items while reading
chapter 4 that I didn't know before. Please try this:
1 - Create a new Windows Application
2 - Add a MainMenu component and then a single top level menu and two menu
items under it. Mine looked like this:
Whatever <- Top Level menu item
A Menu Item <- First sub menu item
B Menu Item <- Second sub menu item
3 - Add MsgBox statements to the Click events for each sub menu items to
indicate when the event is executed.
DO NOT add access key identifiers (&) or do anything else.
Now run the application. Notice that if you ...
Press and release the Alt key
press W, then A, you get the first MsgBox
press W, then B, you get the second MsgBox
You don't need to specify access keys. The first letter of the string in the
Text property is used!
How long has this been the default behavior?
Also ... does anyone know how to contact Michael Halvorson to ask him about
this?
(using Windows XP, VB.NET 2003)