Quote Originally Posted by RhinoBull
... or use CloseWindows():
VB Code:
  1. Option Explicit
  2.  
  3. Private Declare Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long
  4.  
  5. Private Sub Command1_Click()
  6.     CloseWindow SomeHWnd 'SomeHWnd must be declared as Long
  7. End Sub
Thanx, I'll try it... can't use unload form, because the tab control only knows the handle...