如何使按钮看起来好像被按下? [英] How to make a button appear as if it is pressed?
本文介绍了如何使按钮看起来好像被按下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 VS2008、C#、.Net 2 和 Winforms 如何使常规按钮看起来按下"?想象一下这个按钮是一个开/关开关.ToolStripButton
具有 Checked 属性,但常规 Button 没有.
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 Checked property, but the regular Button does not.
推荐答案
您可以用来获得此选项的一种方法是放置一个CheckBox"对象并将其外观"从正常"更改为按钮",这将为您提供我相信您正在寻找的相同功能.
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.
这篇关于如何使按钮看起来好像被按下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文