PictureBox BackgroundImage属性C# [英] PictureBox BackgroundImage Property C#

查看:406
本文介绍了PictureBox BackgroundImage属性C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以刷新一下我如何以编程方式设置图片框的背景图像吗?

can someone please refresh me how I can programatically set the background image of a picture box?

非常感谢!

推荐答案

图片框同时具有ImageBackground Image属性

要设置Background Image,您必须设置pictureBox1.BackgroundImage=your_Image;

,对于Image属性pictureBox1.Image=your_Image;

这篇关于PictureBox BackgroundImage属性C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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