How to provide shortcut keys

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
 
T

Tim_Mac

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
 
S

Shivprasad.Patil

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.
 
S

Shivprasad.Patil

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top