Ir al índice principal
el Guille, la Web del Visual Basic, C#, .NET y más...
  Lo+ - WinFX - .NET - ADO.NET - ASP.NET - Cómo... - Colabora - VB6 - HTML - Vista - Links - Foros  

Buscar en Google y en elGuille.info:
Google
 

ShowWindow

 
Publicado el 30/Nov/2007
Actualizado el 30/Nov/2007
Autor: Guillermo 'guille' Som

ShowWindow. Muestra (cambia) la ventana actual al estado indicado.

elGuille.hosting: La oferta avanzada:
.NET 2.0, SQL Server, 4000MB, 30GB transf. por 19.95 Eur al mes




 

ShowWindow

Muestra (cambia) la ventana actual al estado indicado.
El estado puede ser: maximizada, minimizada, etc.

Si la ventana ya estaba visible devuelve un valor distinto de cero.

Sería el equivalente a asignar un valor a la propiedad WindowState de un formulario.

 

Declaración en el API de Windows:

BOOL ShowWindow(
  HWND hWnd,     // handle to window
  int nCmdShow   // show state of window
);

 

Declaración para VB6:

Private Declare Function ShowWindow Lib "user32" _
	(ByVal hWnd As Long, ByVal nCmdShow As Long) As Long

 

Declaración para VB .NET:

<System.Runtime.InteropServices.DllImport("user32.dll")> _
Private Shared Function ShowWindow( _
        ByVal hWnd As System.IntPtr, _
        ByVal nCmdShow As Integer) As Integer
End Function

 

Declaración para C#:

[System.Runtime.InteropServices.DllImport("user32.dll")]
private extern static int ShowWindow(
        System.IntPtr hWnd, 
        int nCmdShow);

 


Código de ejemplo y temas relacionados:



Contribuye con el Guille
Aporta tu granito de arena y ayuda a mantener el sitio del Guille...


Cosas que te pueden interesar



Mentor de
Solid Quality mentors
Most Valuable Professional
MVP de Visual Basic desde 1997



Orador internacional de Ineta
Orador de Ineta Latam

ir al índice del Guille

Valid XHTML 1.0 Transitional


Escribir un mensaje al Guille (mensaje EN elGuille.info)
Has entrado usando el host: www.elguille.info
Puedes verlo también en: http://www.mundoprogramacion.com/net/api/showwindow.aspx