Minimize/Maximize

  • Thread starter Thread starter EmilH
  • Start date Start date
E

EmilH

Hi,

Can anybody show me how to minimize/maximize a window dynamically? I placed
buttons for each of these commands and want to place the code which will
minimize and maximize the window.

Thanks in advance.
Emil.
 
Hi EmilH,

Use the .WindowState property of a Form:

this.WindowState = FormWindowState.Maximized; (to maximize the Form)
this.WindowState = FormWindowState.Minimized; (to minimize)
this.WindowState = FormWindowState.Normal; (for back to normal)

WBR, Alex Meleta
Blog: http://devkids.blogspot.com

-----Original Message-----
From: EmilH [mailto:[email protected]]
Posted At: Mittwoch, 18. April 2007 09:10
Posted To: microsoft.public.dotnet.languages.csharp
Conversation: Minimize/Maximize
Subject: Minimize/Maximize

Hi,

Can anybody show me how to minimize/maximize a window dynamically? I
placed
buttons for each of these commands and want to place the code which will

minimize and maximize the window.

Thanks in advance.
Emil.
 
Back
Top