Window example for Visual Basic
This example shows how to call one of the Windows API functions and pass the ImageList Control's Window property as a parameter.
Private Declare Function ShowWindow Lib "User32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Boolean
Private Sub Command6_Click()
'hide the control
ShowWindow LEADImgList1.Window, 0
MsgBox "wait"
'restore the window
ShowWindow LEADImgList1.Window, 1
End Sub