Search code examples
.netwinformsdelphic#-4.0dfm

Do we have Button down property as Boolean


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?


Solution

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