Is there a possible way in VB.NET to disable the close button of the main form as I’ve seen in many installer! I don’t want to hide it, I want to completely disable it!
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since the blog post in the accepted answer has been taken offline, the following is a solution for C#.NET:
http://www.codeproject.com/Articles/20379/Disabling-Close-Button-on-Forms
Using the C#.NET to VB.NET converter on DeveloperFusion, the equivalent VB.NET solution is: