Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Using Escape to exit VB6 form
How can I have the escape key close a form in VB6 without having any buttons on a form.
I would like to have objects on the screen but no Close button, only the Close X in the top right hand corner. However, I do want the Escape key to close the current form.
The following will not work in my form's keypress event.
'''''''''''''''
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 27 Then
End
End If
End Sub
'''''''''''''''
Thanks,
Jerryt
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement