Sign in to follow this  
Montynis

[.net] Size of MaximizeBox and minimizing a form

Recommended Posts

Hello, I have got two questions about Windows forms programming. How to programically get the size of MaximizeBox (in pixels)? I know that this depends on the current OS theme when the program runs (XP or Classic), the size of the font (Normal, Large, Extra large) and the advanced appearence which can be set in display properties in appearance tab. Second question: how to programically minimize the window of the program? Thanks in advance.

Share this post


Link to post
Share on other sites
Quote:
Original post by Montynis
Second question: how to programically minimize the window of the program?


Set Form.WindowState to Forms.FormWindowState.Minimized.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this