Unknown error

G

Guest

Hello

I have this error message when i try to open a form
My coding falls over on this line....

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

here is the error i am getting. does anyone know how to fix??....
An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dl

th

Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "frmRes.resources" was correctly embedded or linked into assembly "Caravan"
baseName: frmRes locationInfo: Caravan.frmRes resource file name: frmRes.resources assembly: Caravan, Version=1.0.1550.16863, Culture=neutral, PublicKeyToken=nul
 
B

barm

Varun,

Make sure that the resource you're referencing (button2.image) is set as an
embedded resource in your solution - that may help,

Thanks

Andrew

Varun said:
Hello,

I have this error message when i try to open a form.
My coding falls over on this line.....

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

here is the error i am getting. does anyone know how to fix??.....
An unhandled exception of type
'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
thx

Additional information: Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given assembly. Make sure
"frmRes.resources" was correctly embedded or linked into assembly "Caravan".
baseName: frmRes locationInfo: Caravan.frmRes resource file name:
frmRes.resources assembly: Caravan, Version=1.0.1550.16863,
Culture=neutral, PublicKeyToken=null
 
G

Guest

yes change file type from compile to embedded resourse. probably by right clicking on a file in sol. explorere. I'd also use aldasm.exe to get full type info of your object so yiou can correctly instantiate it.
 

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