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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top