Como se que el usuario esta pulsando la tecla <Alt> o <Ctrl> a la vez que la tecla que pulse.
He mirado la ayuda y no lo entiendo
PUBLIC SUB Form_KeyPress()
' KeyPress with Control Key event will often pass through to this Form event.
DIM altSet AS Boolean
TRY altSet = Key.Alt
altSet = IIf( ERROR , FALSE, altSet)
IF altSet THEN
ME.Text = CString(Time) & " True: Control key is being held down"
ELSE
ME.Text = CString(Time) & " False: Control key was not held down"
ENDIF
END
' KeyPress with Control Key event will often pass through to this Form event.
DIM altSet AS Boolean
TRY altSet = Key.Alt
altSet = IIf( ERROR , FALSE, altSet)
IF altSet THEN
ME.Text = CString(Time) & " True: Control key is being held down"
ELSE
ME.Text = CString(Time) & " False: Control key was not held down"
ENDIF
END
Como se que esta pulsando F5 y la tecla control. ¿Son key.Alt y key.Control funciones?
Gracias por volver sobre los pasos, pero a veces....
Antonio