禁用Windows窗体取消按钮 [英] disable windows form cancel button

查看:99
本文介绍了禁用Windows窗体取消按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁用表单中的取消"按钮以及(启用最小化或最大化按钮)方法?

how to disable cancel button in form and (minimize or maximize button is enable) how to do this?

推荐答案

您是指关闭"按钮吗?右上角的"X"?

如果是这样,那不是很明显-您必须使用CreateParams.在此处查看:在表单上禁用关闭"框 [ ^ ]
Do you mean the Close button? The "X" in the top right corner?

If so, then it''s not obvious - you have to use CreateParams. Have a look here: Disable the Close box on a form[^]


这篇关于禁用Windows窗体取消按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆