Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# buttons Forms
i want to only enable button X(close) and disable minimize,maximize buttons on forms
How do I do?
thanks
regards
Posted 12-May-13 20:15pm
Comments
Sergey Alexandrovich Kryukov at 13-May-13 1:21am
   
What prevents you from just reading the documentation?
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Form have a property like
MaximizeBox 
and
MinimizeBox
If you set Both as False then it does not appear on the FORM
 
Another solution
 
Set FormBorderStyle Property as
FixedToolWindow
or
SizableToolWindow
then the Form Shows only the Close Button
 
Hopes this helps you...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

It's to easy. try this !
Open property window of target form and set MaximizeBox and MinimizeBox property to false...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

thanks all
I solved my issue
regards
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 12-Oct-14 12:51pm
   
Sorry, this post is not a solution, does not belong here. Such posts are considered as abuse. Also, no one gets notifications. Please use comments and/or "Improve question".
—SA

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

  Print Answers RSS
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 264
3 BillWoodruff 235
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100