keyboard non-character key identification

How do I determine which non-character key has been depressed? Is there a way to determine if the shift key is also depressed at the same time?
[183 byte] By [slausonj] at [2008-1-7]
# 1

Where are you checking the key states? In a Key event handler, such as KeyDown, those keys are availble via the event args:

Code Snippet

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown

If e.Shift Then

'the shift key is depressed

End If

End Sub

Can you elaborate more?

rkimble at 2007-10-2 > top of Msdn Tech,Visual Basic,Visual Basic General...