R
robear
I getting the above error when I try to debug the application in a WM5
Phone Emulator. The referenced image is only 37KB in size. The
application has 3 labels two textboxes, one date picker, a combobox and
the picturebox.
This code is in the InitializeComponents region, so therefore has been
created by the designer when I added the PictureBox.
Here is the code:
//
// pictureBox1
//
this.pictureBox1.Image =
((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
<----- Errors on this line
this.pictureBox1.Location = new System.Drawing.Point(3, 3);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(234, 72);
I have seen some similar posts, but none deals with code that the
designer (VS2005) has created. This happens in both Debug and Release
deploys.
Of course this app is in C#, but the app has also been developed in
VB.NET and it doesn't have an issue...
Any help?
Thanks,
Robert
Phone Emulator. The referenced image is only 37KB in size. The
application has 3 labels two textboxes, one date picker, a combobox and
the picturebox.
This code is in the InitializeComponents region, so therefore has been
created by the designer when I added the PictureBox.
Here is the code:
//
// pictureBox1
//
this.pictureBox1.Image =
((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
<----- Errors on this line
this.pictureBox1.Location = new System.Drawing.Point(3, 3);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(234, 72);
I have seen some similar posts, but none deals with code that the
designer (VS2005) has created. This happens in both Debug and Release
deploys.
Of course this app is in C#, but the app has also been developed in
VB.NET and it doesn't have an issue...
Any help?
Thanks,
Robert