Visually remove/disable close button from title bar .NET

前端 未结 13 945
后悔当初
后悔当初 2020-12-03 21:51

I have been asked to remove or disable the close button from our VB .NET 2005 MDI application. There are no native properties on a form that allow you to grey out the close

相关标签:
13条回答
  • 2020-12-03 22:47

    Here is a simple way to remove the close button:
    1. Select the Form
    2. Now go to Properties.
    3. Find ControlBox and change the value to False.

    This will remove all the Control Buttons (e.g. Minimize, Maximize, Exit) and also the icon also that is in the to left corner before the title.

    0 讨论(0)
提交回复
热议问题