System.Resources.MissingManifestResourceException

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.
 
A

Alexander

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)
 
P

Peter

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top