我的目标是更改背景图像并将其 SizeMode 设置为 Stretch。 到目前为止已经尝试了很多,有什么想法吗?
编辑:我正在使用 C# 表单应用程序。尝试简单地设置 bg 图片的大小模式:
picturebox1.BackgroundImage = Properties.Resources.Image;
picturebox1.SizeMode = PictureBoxSizeMode.StretchImage;
试图绕过它...没有成功...
最佳答案
看BackgroundImageLayout .
示例:
whatever.BackgroundImageLayout = ImageLayout.Stretch
关于c# - 更改图片框中背景图像的大小模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10211237/