Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

How to provide shortcut keys

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SwatSoftwareDev - 26 Dec 2005 13:13 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.