Disabling the Close-Button temporarily

后端 未结 7 1121
后悔当初
后悔当初 2020-12-31 14:45

I need to disable just the close button (minimize and maximize should be allowed) temporarily.

Every solution I\'ve tried disables all the buttons

相关标签:
7条回答
  • 2020-12-31 15:13

    The Close Button Is Disabled On Below Conditon : If We Add : MessageBoxButtons.YesNo

    DialogResult Dr = MessageBox.Show(this, "", "", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
    
    0 讨论(0)
提交回复
热议问题