|
-
Aug 7th, 2006, 10:35 AM
#4
Thread Starter
Hyperactive Member
Re: unload form: only knowing handle
 Originally Posted by RhinoBull
... or use CloseWindows():
VB Code:
Option Explicit
Private Declare Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Command1_Click()
CloseWindow SomeHWnd 'SomeHWnd must be declared as Long
End Sub
Thanx, I'll try it... can't use unload form, because the tab control only knows the handle...
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
|