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 / September 2004

Tip: Looking for answers? Try searching our database.

Implenting Keyboard support in windows forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tech Student - 23 Sep 2004 21:45 GMT
(Type your message here)

I need to implement functionality to support function keys(F1..F12) and shortcut keys(example Ctrl R) in windows forms.User will use just the key board to access and navigate the forms, User will not use mouse.If any one has any suggestions can you please let me know.

Note:I tried KeyPressed events. it seems i can't capture the function keys or the modifier keys with this event.
Note: i tried to use ProcessCmdKey. I am not able to capture the combination key strokes like "Ctrl F")

Thanks
Matt Berther - 23 Sep 2004 22:24 GMT
Hello Tech Student via .NET 247,

You can add shortcut commands to your MenuItems... Look in the property browser...

--
Matt Berther
http://www.mattberther.com

> (Type your message here)
>
[quoted text clipped - 13 lines]
> Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)
> <Id>6xNnxnozP0usVg/wS3rmRQ=3D=3D</Id
TechStudent - 24 Sep 2004 16:19 GMT
Matt,

Thanks for the reply,

I am not using any menus. I am trying to simulate functionality as the old
applications.

example:I will have a button with text (GO)F4, the user with out clicking
the button should able to click "F4" and we should able to raise an event to  
process.

Thanks

> Hello Tech Student via .NET 247,
>
[quoted text clipped - 21 lines]
> > Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)
> > <Id>6xNnxnozP0usVg/wS3rmRQ=3D=3D</Id
Sijin Joseph - 26 Sep 2004 16:40 GMT
Refer to this article
http://www.ondotnet.com/pub/a/dotnet/2002/04/29/keys.html

it seems you can use the ProcessDialogKey()  method to get what you
want, "Keys" is a bitwise enumeration of the pressed keys.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> (Type your message here)
>
[quoted text clipped - 10 lines]
>
> <Id>6xNnxnozP0usVg/wS3rmRQ==</Id
Techstudent - 28 Sep 2004 01:15 GMT
Sijin Joseph,

Thanks for the direction. It worked.

Thanks

> Refer to this article
> http://www.ondotnet.com/pub/a/dotnet/2002/04/29/keys.html
[quoted text clipped - 20 lines]
> >
> > <Id>6xNnxnozP0usVg/wS3rmRQ==</Id

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.