Disable windows Form Maximize

Apr 27, 2017WinForm
Summarize with AI: Google AI Claude ChatGPT Perplexity Grok

AI links open with a title + excerpt (these tools can't fetch the page themselves) — use "Copy full article" to paste the complete text for a fuller summary.

Share:

Open visual studio 2015: New Project >select windows application 1w.png After create new project Form1 will be shown like below pic. 2w.png Select above the form and click F4.Property window should be appearing. 3w.png Now form’s Maximize Button goes to disable in the design mode. 4w.png After run the application, double click isn’t work. because maximize button go to disable. If you stop maximizing in run time, use the below line in your event. (E.x) I am using in button click even.

private void button1_Click(object sender, EventArgs e) {  this.MaximizeBox = false; }

After run the application begin maximize button is work, if you click the button it should be disabled Output: Before Click Event 7w.png After Click Event 6w.png

#WinForm

Comments

Be the first to comment.

Leave a comment

Never shown publicly.

Comments are reviewed before appearing publicly.