本文介绍了我们是否将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属性设置为布尔值
发布评论