如何删除按钮的背景图像? [英] how to remove a backgroungd image of a button?

查看:75
本文介绍了如何删除按钮的背景图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除按钮的背景图片?单击该按钮后需要删除该图像.删除图像意味着不替换现有图像(不在前一个图像之上放置新图像).我们可以使用"BackgroundImageChanged"吗?

how can we remove a background image of a button? image need to be removed once the button is clicked.removing image means not replacing the existing image (not placing a new image on top of the previous). can we use "BackgroundImageChanged"?
can somebody give me a sample code if possible.

推荐答案

<big>button1.BackgroundImage = null;</big>


只需将Buttons BackgroundImage属性设置为Nothing in按钮的事件处理程序.
Just set the Buttons BackgroundImage property to Nothing in the Buttons Click event handler.


只需将Image属性设置为null:图像将消失.
Just set the Image property to null: the image will disappear.


这篇关于如何删除按钮的背景图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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