?
Solved

How can I override the arrow keys on a form?

Posted on 2006-05-13
4
Medium Priority
?
272 Views
Last Modified: 2010-04-16
Usually the arrow keys change focus of the control on a form.

How can I override this behaviour?

C#
VS 2005
0
Comment
Question by:purplesoup
  • 2
4 Comments
 
LVL 11

Expert Comment

by:Jase-Coder
ID: 16673792
override the form event : KeyDown
0
 
LVL 11

Accepted Solution

by:
vo1d earned 2000 total points
ID: 16674302
you have to override the forms ProcessCmdKey message.
0
 

Author Comment

by:purplesoup
ID: 16681252
Jase-Coder:
This doesn't work. Overriding the form's keydown event is actually just ignored *unless* you set the KeyPreview property on the form to True (it is false by default); however even then this simply responds to standard keyboard keys (e.g. the letters) rather than the arrow keys.

vo1d:
This works - there is a full Microsoft article at:
http://support.microsoft.com/?scid=http%3a%2f%2fwww.support.microsoft.com%2fkb%2f320584%2f

Thanks.
0
 
LVL 11

Expert Comment

by:vo1d
ID: 16691764
thanks for that link ;)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question