string picPath = Environment.CurrentDirectory;
Bitmap MyImage = new Bitmap(picPath + @"\top1.bmp");
this.pictureBoxTop.SizeMode = PictureBoxSizeMode.StretchImage;
this.pictureBoxTop.Image = MyImage;
Bitmap MyImage = new Bitmap(picPath + @"\top1.bmp");
this.pictureBoxTop.SizeMode = PictureBoxSizeMode.StretchImage;
this.pictureBoxTop.Image = MyImage;
<value>这里就保存了图片的信息</value>
资源文件当然在这里就是Form1.resx了,代码如下:System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
Bitmap bm=new Bitmap(Filename);
pBox.image=bm;
p