我们是否将Button down属性设置为布尔值 [英] Do we have Button down property as Boolean

查看:140
本文介绍了我们是否将Button down属性设置为布尔值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被分配将delphi代码转换为.Net,并想知道我们是否像delphi那样具有button的down属性? 如在此链接中回答 如果它是组中唯一的一个,如何使Delphi TSpeedButton保持按下状态

I am assigned to convert delphi code to .Net, and was wondering if we have down property of button as in delphi has? As answered in this link How to make a Delphi TSpeedButton stay pressed if it's the only one in the group

我们可以在.Net Button控件中实现此行为吗?

Can we achieve this behavior in .Net Button control?

推荐答案

尝试使用外观属性设置为Button即可它看起来像一个切换按钮.

Try to use CheckBox control. Set Appearance property to Button to make it look like a toggle button.

这篇关于我们是否将Button down属性设置为布尔值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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