This website has been designed for use with the FireFox browser. Please use FireFox to view this page.
CloseWindow Reference in C#, VB.NET and VB6
Library:user32.dll
Visual Basic .NET definition
Declare Function CloseWindow Lib "user32" (ByVal hwnd As Integer) As Integer
C# definition
[DllImport("user32")]
public static extern int CloseWindow(int hwnd)
Description
CloseWindow
Minimizes (but does not destroy) the specified window.
System.Windows.Forms.Form.WindowState = System.Windows.Forms.FormWindowState.Minimized
Further Information:
For further information on Windows API functions such as these, and how to use these API's in your
C# and VB.NET applications, please refer to the book 'Network programming in .NET' (Buy at Amazon UK) (Buy at Amazon US)