image resouce not found

S

sklett

I'm getting an error when I try to load a form in the designer:
<rest of namespace>.Properties.Resources' has no property named
'SearchGo_icon'.

When I look at the list of image resources I see the resource VS2005 is
claiming doesn't exist.
I've tried embedding the image and linking at compile time.

Looking at Resource.Designer.CS I don't see my image resource listed (or any
image resource).

Anyone else experiencing this? Any solutions?
 
V

Vladimir Volkov

Hello, sklett!
You wrote on Tue, 26 Dec 2006 12:41:54 -0800:

s> I'm getting an error when I try to load a form in the designer:
s> <rest of namespace>.Properties.Resources' has no property named
s> 'SearchGo_icon'.

s> When I look at the list of image resources I see the resource VS2005 is
s> claiming doesn't exist.
s> I've tried embedding the image and linking at compile time.

s> Looking at Resource.Designer.CS I don't see my image resource listed (or
s> any image resource).

Do you declare any classes/structs in the same file with your form, but
before the form class itself?
If you do, try rearranging the declarations so that the form class is the
first one declared in the file.
 
S

sklett

Hi Vladimir,

Vladimir Volkov said:
Hello, sklett!
You wrote on Tue, 26 Dec 2006 12:41:54 -0800:

s> I'm getting an error when I try to load a form in the designer:
s> <rest of namespace>.Properties.Resources' has no property named
s> 'SearchGo_icon'.

s> When I look at the list of image resources I see the resource VS2005 is
s> claiming doesn't exist.
s> I've tried embedding the image and linking at compile time.

s> Looking at Resource.Designer.CS I don't see my image resource listed
(or
s> any image resource).

Do you declare any classes/structs in the same file with your form, but
before the form class itself?
If you do, try rearranging the declarations so that the form class is the
first one declared in the file.

I don't do this, learned that lesson a long time ago. ;) The form class is
the first class.

Thanks for the reply,
Steve
 

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