Oppure

Loading
Questo topic e' stato chiuso dal moderatore.
27/09/10 8:25
rabinhood
Non riesco a far intercettare il tasto "cancel" vicino al tasto "home".
Private Sub Sigla_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Sigla.KeyPress
        MsgBox(e.KeyChar)
      End Sub

Premento i vari tasti mi messaggia correttamente, con il "cancel" non fa nulla.
aaa
27/09/10 10:42
Alfonso
Per i tasti del tastierino numerico o di posizione, ti serve il Keydown
Private Sub Sigla_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Sigla.KeyDown
     MessageBox.Show(e.KeyCode & Environment.NewLine & e.KeyCode.ToString)
 End Sub
 
aaa
27/09/10 12:00
rabinhood
Non potevo chiedere di meglio. Ti ringrazio.
aaa