Lozzer
01-21-2004, 06:07 AM
Why can't I get access keys for a menu item to work. I have tried setting the relevant properties in the properties window. Then tried setting the properties in the form load event as set out in the help files:
mnuBatch.Text = "&Batch"
mnuBatch.Shortcut = Shortcut.CtrlB
mnuBatch.Visible = True
mnuBatch.ShowShortcut = True
When I look at the menu item in the form design window the the text looks as expected, it has the B underlined. But when I run the app, the B is not underlined and the shortcut key doesn't work.
I'm probably missing something stupid!
I'm using VB.NET standard edition version 2003 on a Windows 2000 Pro machine.
mnuBatch.Text = "&Batch"
mnuBatch.Shortcut = Shortcut.CtrlB
mnuBatch.Visible = True
mnuBatch.ShowShortcut = True
When I look at the menu item in the form design window the the text looks as expected, it has the B underlined. But when I run the app, the B is not underlined and the shortcut key doesn't work.
I'm probably missing something stupid!
I'm using VB.NET standard edition version 2003 on a Windows 2000 Pro machine.