
图片将保存在Form1.resx文件中,控件图片赋值示例:
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
图片将保存在Resources.resx文件中,控件图片赋值示例:
this.pictureBox1.Image = global::WindowsFormsApplication1.Properties.Resources.image02;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Image = global::WindowsFormsApplication1.Properties.Resources.image02;
评论(0)
暂无评论。