Click here to Skip to main content
15,889,834 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to only enable button X(close) and disable minimize,maximize buttons on forms
How do I do?
thanks
regards
Posted
Comments
Sergey Alexandrovich Kryukov 13-May-13 1:21am    
What prevents you from just reading the documentation?
—SA

Form have a property like
C#
MaximizeBox 
and
C#
MinimizeBox
If you set Both as False then it does not appear on the FORM

Another solution

Set FormBorderStyle Property as
C#
FixedToolWindow
or
C#
SizableToolWindow
then the Form Shows only the Close Button

Hopes this helps you...
 
Share this answer
 
It's to easy. try this !
C#
Open property window of target form and set MaximizeBox and MinimizeBox property to false...
 
Share this answer
 
thanks all
I solved my issue
regards
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 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)



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