Originariamente inviato da darkblOOd
forse se attivi il key preview sul form ed intercetti il tasto nell'evento keydown
Questo codice dovrebbe funzionare (attiva il KeyPreview!)
codice:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 27 Then
Unload Me
End If
End Sub