How can i make shortcut keys by using code
-
how can i make shortcut keys in code for examole if i press F1 then some page has to redirect or open. can any one help me plzzz Regards, S.Inayat Basha.
-
how can i make shortcut keys in code for examole if i press F1 then some page has to redirect or open. can any one help me plzzz Regards, S.Inayat Basha.
-
how can i make shortcut keys in code for examole if i press F1 then some page has to redirect or open. can any one help me plzzz Regards, S.Inayat Basha.
Hi, there are two ways: 1. the easy one: give your Form a MainMenu or MenuStrip and make sure the actions you want are present in the menus; all it takes to create shortcuts is setting their corresponding ShortCut property. 2. the harder way (also for the user as he has no clue what shortcuts are available): let your Form preview the keyboard (Form.KeyPreview) and give it a KeyDown handler. No need to process the keys for each individual Control on the form! :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages