Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I need to auto adjust my form according to the current resolution of System.

So I need to Maximize my when Formborder Style is set to None so No Maximize and Minimize is not available.

How to do this programitically
Posted

1 solution

Try
this.WindowState = FormWindowState.Maximized; 
this.FormBorderStyle = FormBorderStyle.None; 
this.TopMost = true;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900