How to provide shortcut keys

  • Thread starter Thread starter SwatSoftwareDev
  • Start date Start date
S

SwatSoftwareDev

Hi

I want to provide shortcut keys for different tab pages on my form (such as
Ctrl+H).the problem I'm facing is I don know on which control focus
currently is. I also want to handle up & down arrow keys. Is there any other
way than handling key press and key down on any control( such as handling
key strokes directly, no matter on which control the focus currently is)

Swat
 
hi swat
take a look at the Form.KeyPreview property, from the SDK:
"Gets or sets a value indicating whether the form will receive key events
before the event is passed to the control that has focus."

if you turn on KeyPreview on your main form, you can get the mainform to
handle all the shortcut keys that you want to work globally.

hope this helps your situation
tim
 
Hi,
I have a tool bar and 3 buttons on it. I have three different images embedded on the three buttons. I want to change these images to some other image when the moouse moves over these button.
 
Hi,
I have a tool bar and 3 buttons on it. I have three different images embedded on the three buttons. I want to change these images to some other image when the moouse moves over these button.How do I go about this?? Can anyone help me through this
 
Back
Top