System.Resources.MissingManifestResourceException

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I get the following error with a single form during runtime:

"System.Resources.MissingManifestResourceException: Could not find any
resources appropriate for the specified culture..." etc.

The error is raised during InitializeComponent on the following line:

Me.Button1.Image = CType(resources.GetObject("Button1.Image"),
System.Drawing.Bitmap)

If I reselect the image and rebuild the project, the error goes away, at
least for a while until it reoccurs after a later build.

There is no other code in the source file, only the form code. The form
does inherit from a form template class we have created, although the 50 or
so other similar forms never experience this problem.

Any assistance would be appreciated.
 
Hi,

if you assign an image to a button the designer takes it
an puts it into the associated .resx file (toggle show
all in solution explorer). Looks as if you use that file
now and then.

hih,
AJ
(e-mail address removed)
 
Thanks for the response, AJ.

Do you or anyone else have any idea why the resource file for this
particular form might be losing it's connection to it's resources?
 
Back
Top