如何使一个按钮出现,就好像它是pressed? [英] How to make a button appear as if it is pressed?

查看:120
本文介绍了如何使一个按钮出现,就好像它是pressed?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VS2008,C#,净2和WinForms我怎样才能使一个普通按钮的外观pressed? 想象这按钮是一个开/关开关。 ToolStripButton有Checked属性,但普通按钮不会。

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.

推荐答案

您可以用来获得此选项的一个方法是通过将复选框反对和改变从正常的外观,以按钮这个给你,我相信你正在寻找相同的功能。

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.

这篇关于如何使一个按钮出现,就好像它是pressed?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆