"Newbie" <la******@charter.net> schrieb:
Sorry people, this was a learning lesson for me. I used www.google.com
to search for everything I could think of to find info on using
function keys in vb.net 2003 and came up empty. But when I searched in
this news group I found exactly what I was looking for.
For completeness:
There are basically two solutions:
Add a mainmenu control to the form and create menu items. Assign shortcuts
to the menu items and handle the items' 'Click' events. Note that the menu
items and the menu bar do not need to be visible to make the accelerator
keys work.
- or -
Set the form's 'KeyPreview' property to 'True' and check 'e.KeyCode' in the
form's 'KeyDown' event handler.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>