图标作为按钮 [英] icon as button

查看:86
本文介绍了图标作为按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用图标而不是按钮?如何更改图片框中图片的背景?

 

推荐答案

b


如果你想这样做:

 在设计师中:

     

 代码:


Me.PictureBox1.BackgroundImage = Image.FromFile("C:\temp\picture.png")
Me.PictureBox1.Image = Image.FromFile("C:\temp\picture.png")


** Please select BackgroundImage or Image, according to your needs. **

And add event of PictureBox.Click just like Button.

Regards,


这篇关于图标作为按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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