c# - How to Disable restore box of windows form when it is in maximized condition? -


how can disable restore button in control box of windows form in c#. need make form in maximized condition when loads. possible? maximize box property false, restore box shown automatically on screen.

so comment this:

// define border style of form dialog box. form1.formborderstyle = formborderstyle.fixeddialog;  // set maximizebox false remove maximize box. form1.maximizebox = false;  // set minimizebox false remove minimize box. form1.minimizebox = false; 

this msdn

to maximize form this:

form1.windowstate = formwindowstate.maximized; 

again can found on msdn


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -