在C#.net的窗口应用程序中,如何使不可见的仅恢复按钮 [英] In window application of C#.net, How to make invisible only restore button

查看:98
本文介绍了在C#.net的窗口应用程序中,如何使不可见的仅恢复按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在visual studio .net的窗口形式中,我要使该形式的仅可见还原按钮不可见.

最大"按钮和最小"按钮将保持不变.

我该怎么办


当我做

this.MaximizeBox = false;

双击表单时出现问题,窗口再次调整大小,无法再次最大化.
我只想以两种模式显示我的应用程序,即最小化或最大窗口大小,

请解决我的问题.

在此先感谢

In window form of visual studio .net I want to make invisible only restore button of that form.

Maximum button and minimize button will still remain same.

How can I do this please tell me


When I do

this.MaximizeBox = false;

problem arose when we double click on form, window again resized and couldn''t maximize again.
I want to show my application only in two mode minimize or in maximum size of window,

Please resolve my issue.

Thanks in advance

推荐答案

在页面加载事件中写入此restorebutton(按钮名称).visible = false;
on page load event write this restorebutton(name of button).visible=false;


您可以通过两种方式将Form的 MaximizeBox 属性设置为 false 来禁用恢复按钮

通过Properties设置MaximizeBox属性为

通过在表单加载事件中使用代码作为
You can disable restore button by setting MaximizeBox property of Form to false by two way

set MaximizeBox property false by Properties
or
by using code in form load event as
this.MaximizeBox = false;


这篇关于在C#.net的窗口应用程序中,如何使不可见的仅恢复按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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