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
Post a Comment