1 2 3 4 5 6 7 8 9 10 11 12 13 14 | //設定Form的Keypreview屬性為true Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Enter Then Me.SelectNextControl(Me.ActiveControl, True, True, True, True) e.Handled = True End If End Sub |
沒有留言:
張貼留言