如何在不使用控制框的情况下创建关闭(X)图标 [英] How can i create a close(X) icon without the use of control boxes

查看:99
本文介绍了如何在不使用控制框的情况下创建关闭(X)图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为我的Windows窗体应用程序创建一个create(X)选项,而没有任何最小化或最大化选项。我正在尝试创建一个安装文件,因此我需要这个。我将我的控制框属性设置为false但其余的编码我不知道。任何帮助??

I need to create a create(X) option without any minimize or maximize options for my windows form application. I am trying to create a setup file and hence I require this.I put my control box property to false but the rest of the coding I don''t know. Any help??

推荐答案

将表单的minimizebox和maximizebox属性设置为false

控件箱属性为true

现在x(关闭按钮)是唯一剩下的一个



希望它有所帮助。
set the minimizebox and maximizebox property of the form to false
the controlbox property to true
now the x(closebutton) is the only one left

hope it help.


这篇关于如何在不使用控制框的情况下创建关闭(X)图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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