Da qualche tempo sto cercando di recuperare Ctrl +Alt +spostamento a destra chiave in comune VBNET di gestione dei tasti. Ecco le mie prove:Come catturare Ctrl + Alt + RShftKey
If e.Control And e.Alt And e.KeyCode = Keys.Space Then
MsgBox("CTRL + ALT + SPACE") ' This work
End If
If e.Control And e.Shift And e.KeyCode = Keys.F10 Then
MsgBox("CTRL + SHIFT + F10") ' This work
End If
If e.Control And e.Alt And e.KeyCode = Keys.ShiftKey Then
MsgBox("CTRL + ALT + SHIFT") ' This work
End If
If e.Alt And e.Shift And e.KeyCode = Keys.LWin Then
MsgBox("ALT + SHIFT + LEFT WINDOWS") ' This work
End If
If e.Control And e.Alt And e.KeyCode = Keys.RShiftKey Then
MsgBox("CTRL + ALT + RIGHT SHIFT") ' This don't work
End If
di Windows 7, WinForms, VB2008, .NET framework 2.0
Perché non posso prendere Ctrl +Alt +spostamento a destra chiave nella situazione descritta?
Oppure, come faccio prendo Ctrl +Alt +spostamento a destra chiave combinazione?
Molto interessante. Perché allora RShiftKey e LShiftKey sono enumerati sotto le costanti di Keys? Lo stesso valeva per LControlKey e RControlKey? Cos'altro non funziona come previsto? –
Aggiornato la mia risposta a una soluzione praticabile: è qui che si utilizzano quei codici enumerati –
Ha un problema. Premere un altro tasto arbitrario dopo aver tenuto premuti i tre tasti e vedere che attiva la finestra di messaggio. –