使用C#将按钮变成图像 [英] Turn a button into a image using c#

查看:73
本文介绍了使用C#将按钮变成图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.我有一个按钮将其设置为

例如(最初是(button.visibility = visibility = visibility.Hidden;).单击按钮后如何使它变成图像,或者单击按钮后如何使按钮背景变为白色并可见.

谢谢

Hi. i have a button which i set it into

eg.( button.visibility=visibility=visibility.Hidden;) initially. How do i make it turn into a image after clicking the button or how can i make the button background to white and visible after button click .

Thanks

推荐答案

您可以通过图片框在两者之间切换来在同一位置显示图像.您可以将按钮背景设置为任意属性,这是一个属性.没有人可以单击不可见的按钮.
You can show an image in the same location via a picture box, by toggling between the two. You can set the button background to anything you like, it''s a property. No-one can click on a button that is invisible.


您好,
您可以使用切换按钮 [ ^ ].您可以使用此按钮更改按钮的状态和样式.
试试这个:
如何使用ToggleButton控件 [ http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ToggleButton/ToggleButton.aspx [ ^ ]
切换控件 [
Hi,
You can do this by using Toggle Buttons[^]. You can change the states and style of the button using this.
Try this:
HOW TO Use the ToggleButton Control [^]
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ToggleButton/ToggleButton.aspx[^]
Toggle Controls[^]


--Amit


这篇关于使用C#将按钮变成图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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