Click here to Skip to main content
15,886,026 members
Articles / Programming Languages / C#

How to Complete remove the Exit button from the title bar in windows form in C#

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
2 Nov 2012CPOL 0  
Setting FormBorderStyle = "none" will remove the title bar (at both design and run time) - and also remove your ability to resize the form.If you need a border you can set:ControlBox = "false";Text = "";And if you want to disable the close button then try this:Disable An...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
2 Nov 2012Zain -Ul- Arifeen 4 alternatives  
How to Complete remove the Exit button from the title bar in windows form in C#Any Suggestion
Please Sign up or sign in to vote.
2 Nov 2012Pravinkarne.31
You can refer below links- "Disabling Close Button on Forms[^]C# Close Button Disable Example[^]
Please Sign up or sign in to vote.
2 Nov 2012Sushil Mate
http://msdn.microsoft.com/en-u...
Please Sign up or sign in to vote.
7 Jul 2013Sergey Alexandrovich Kryukov
There is no such button on a title bar. There is nothing to remove. —SA

License

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


Written By
Software Developer (Senior)
Malaysia Malaysia
I've been working with various Microsoft Technologies. I have earned my Microsoft Certified Technology Specialist (MCTS) certification. I'm a highly motivated self-starter with an attitude for learning new skills and utilizing that in my work.


--Amit Kumar
You can reach me at:
Facebook | Linkedin | Twitter | Google+

Comments and Discussions