How to minimize windows form programmatically?

G

Guest

Hi all.

Perhaps I'm missing something simple here. If I use a form border style
"None" (no Minimize/Maximize/Close buttons) how can I minimize the form when
user clicks some control?

Thanks for any help!
 
M

Mattias Sjögren

Perhaps I'm missing something simple here. If I use a form border style
"None" (no Minimize/Maximize/Close buttons) how can I minimize the form when
user clicks some control?

Set the WindowState property to FormWindowState.Minimized


Mattias
 

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

Top