المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : KeyDown event and Tab Indexes trouble ?



C# Programming
08-12-2009, 09:12 PM
Hi.
I've made a Win APP that there are four buttons in it.
http://img193.imageshack.us/img193/6717/90436790.png[^ (http://img193.imageshack.us/img193/6717/90436790.png)]
I wanna to show a message whenever Keys.Down is pressed.
I have changed PreviewKey of Form to True. but when I press Key.Down , just the focus change between buttons and the event doesn't fire.

This is my project with c# and VS 2008 : http://www.mediafire.com/?mh01etlgm5z[^ (http://www.mediafire.com/?mh01etlgm5z)]

Could you please guide me , how I can do it ?
Thanks.