我在用C#做窗体设计,picturebox的backgroundimage和image都放了图片,如何让imag

2025-02-27 22:24:25
推荐回答(1个)
回答1:

两步:
1、在属性窗口中设置picturebox的BackgroundImage属性;
2、在需要时用代码设置picturebox的Image属性,如:
picturebox.Image=System.Drawing.Bitmap.FromFile("美女.jpg");