Umair_Ahmad_Khan Posted January 16, 2005 Share Posted January 16, 2005 I want to know how to get that Any Arrow key is pressed. In C#. Link to comment Share on other sites More sharing options...
0 GatorV Posted January 16, 2005 Share Posted January 16, 2005 I had this problem some time ago, try this: (is in VB.NET) Protected Overloads Overrides Function ProcessCmdKey(ByRef msg As Windows.Forms.Message, ByVal keydata As Windows.Forms.Keys) As Boolean Select Case keydata Case Keys.Up ' Up key Case Keys.Down ' Down key End Select Return MyBase.ProcessCmdKey( msg, keydata ) End Function Link to comment Share on other sites More sharing options...
Question
Umair_Ahmad_Khan
I want to know how to get that Any Arrow key is pressed. In C#.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts