0
我一直在尝试使用以下代码将图像从我的资源加载到使用C#的的Visual Studio 2012上。如何在Visual Studio中使用C将图像加载到PictureBox中的图像#
pictureBox1.Load(Properties.Resources.Desert);
而我一直在收到以下错误。
- 最佳重载的方法匹配
System.Windows.Forms.PictureBox.Load(string)
有一些无效参数 - 参数1:不能转换从
System.Drawing.Bitmap
到string
谢谢它的作品! 此外,我的资源中有大约50张图片,名称为M1,M2 .... M5。 如何使用变量来指向这些图像 PictureBox1.Image = Properties.Resources.Variable; – user2605318