更改图片框中背景图片的大小模式

Ant*_*tin 5 c# background-image picturebox winforms image-resizing

我的目标是更改背景图像并将其SizeMode设置为Stretch.到目前为止尝试过很多想法?

编辑:我在C#表单应用程序中工作.尝试简单设置bg图片的大小模式:

picturebox1.BackgroundImage = Properties.Resources.Image;
picturebox1.SizeMode = PictureBoxSizeMode.StretchImage;
Run Code Online (Sandbox Code Playgroud)

试图四处走动......没有成功......

Ska*_*lli 15

看看BackgroundImageLayout.
例:

whatever.BackgroundImageLayout = ImageLayout.Stretch
Run Code Online (Sandbox Code Playgroud)