How to make a button appear as if it is pressed?

后端 未结 3 1040
再見小時候
再見小時候 2020-12-01 17:55

Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look \"pressed\"? Imagine this button is an on/off switch. ToolStripButton has the Checke

相关标签:
3条回答
  • 2020-12-01 18:10

    I think you may need a ToggleButton. You can take a look at third party vendors of WinForms components such as Telerik, DevExpress, ComponentFactory, ViBlend which provide such control. They all provide toggle buttons.

    0 讨论(0)
  • 2020-12-01 18:28

    You could probably also use the ControlPaint class for this.

    0 讨论(0)
  • 2020-12-01 18:32

    One method you can used to obtain this option is by placing a "CheckBox" object and changing its "Appearance" from "Normal" to "Button" this will give you the same functionality that I believe you are looking for.

    0 讨论(0)
提交回复
热议问题