开发者

How can i show MinimizeBox without MaximizeBox?

开发者 https://www.devze.com 2023-04-13 04:47 出处:网络
How 开发者_JAVA技巧can i show the MinimizeBox without the MaximizeBox.You cannot hide them. The Form has two properties called MinimizeBox and MaximizeBox, set false which you do notneed.

How 开发者_JAVA技巧can i show the MinimizeBox without the MaximizeBox.


You cannot hide them. The Form has two properties called MinimizeBox and MaximizeBox, set false which you do not need.

To stop the form closing, handle the FormClosing event, and set e.Cancel = true; in there and after that, set WindowState = FormWindowState.Minimized;, to minimize the form.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号