Do Or commands not work within Select Case starements? This code don't work at all. What gives?
Also is there a nice easy way to make the button look like it was actually pressed down when the key for it is pressed just like when the mouse is held down over it?Code:Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown Select Case e.KeyCode Case Keys.NumPad0 Or Keys.D0 My.Computer.Audio.Play(My.Resources.click_x, AudioPlayMode.Background) lblInput.Text += "0" lblInput.Focus() 'don't want a button getting focus because it makes border around it End Select End Sub




Reply With Quote