Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Escape to exit VB6 form
Message
 
To
08/02/2001 14:49:57
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00474138
Message ID:
00474243
Views:
22
>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
What is END in the End IF statement
Should it not be Unload me

Regards
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Previous
Reply
Map
View

Click here to load this message in the networking platform