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
Tim_Mac - 28 Dec 2005 23:07 GMT
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
--------------------------
blog: http://tim.mackey.ie
> Hi
>
[quoted text clipped - 7 lines]
>
> Swat
SwatSoftwareDev - 29 Dec 2005 06:58 GMT
Thanks Tim, I have got the solution by ur technique.
Regards,
Swat
> hi swat
> take a look at the Form.KeyPreview property, from the SDK:
[quoted text clipped - 21 lines]
> >
> > Swat
Shivprasad.Patil@ps.net - 16 Feb 2006 10:03 GMT
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.
Shivprasad.Patil@ps.net - 16 Feb 2006 10:04 GMT
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