• 0

C#: How to get Arrow Keys


Question

1 answer to this question

Recommended Posts

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.