469,331 Members | 1,788 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

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.
Apr 18 '07 #1
4 13250
e.g.
someForm.WindowState = FormWindowState.Maximized;

That do?

Marc

Apr 18 '07 #2
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:em*****@yahoo.com]
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.
Apr 18 '07 #3
Thanks a lot!

"Alex Meleta" <am*****@gmail.comwrote in message
news:A4C74B969FF1490BBAAEBCCDF6064E77@ALexPC...
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:em*****@yahoo.com]
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.


Apr 18 '07 #4
Thanks, Marc!

"Marc Gravell" <ma**********@gmail.comwrote in message
news:11*********************@n59g2000hsh.googlegro ups.com...
e.g.
someForm.WindowState = FormWindowState.Maximized;

That do?

Marc

Apr 18 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Bhargavan | last post: by
5 posts views Thread by David Jackson | last post: by
5 posts views Thread by =?Utf-8?B?SmFtZXMgV29uZw==?= | last post: by
reply views Thread by =?Utf-8?B?Ym9hdGFibGU=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.