|
-
Feb 27th, 2001, 04:42 PM
#1
Thread Starter
Member
I try to close my App with the Escape Key, but is'nt working .....
I do this in a Module:
Option Explicit
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Public Const VK_ESCAPE = &H1B
Sub Main()
Load frmMainX
frmMainX.Show
Load frmMainY
frmMainY.Show
If GetAsyncKeyState(VK_ESCAPE) <> 0 Then
Unload frmMainX
Unload frmMainX
End If
End Sub
May someone could tell me what i do wrong?
Thx,
Susn
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|