Re: Is this what you meant?
Quote:
Originally posted by Ian McKenzie
I tried it this way with KeyCode, Keydata, and KeyValue, but it still doesn't work. Is this what you meant?
Public Sub lstViewScore_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
If e.KeyValue = Keys.Left Then
lstViewScore.Items.Add("T")
ElseIf e.KeyValue = Keys.Right Then
lstViewScore.Items.Add("F")
ElseIf e.KeyValue = Keys.Space Then
lstViewScore.Items.Add("Missing Item")
End If
End Sub
Ian
I tried the above code and it DOES add "T" or "F" or "Missing Item" on each appropriate key press, provided the LstViewScore has focus. Can't see the point of it though:confused: