我们是否将Button down属性设置为布尔值

编程入门 行业动态 更新时间:2024-10-21 04:13:16
本文介绍了我们是否将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属性设置为布尔值

本文发布于:2023-11-17 07:06:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609247.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:设置为   属性   布尔值   Button

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!