Do we have Button down property as Boolean

痴心易碎 提交于 2019-12-10 15:07:34

问题


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

Can we achieve this behavior in .Net Button control?


回答1:


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



来源:https://stackoverflow.com/questions/9931516/do-we-have-button-down-property-as-boolean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!