I've seen this before and it didn't have anything to do with the resources,
but IIRC, it was caused by my having declared another helper class in the
source *before* the class that had the imagelist member.  That is,

namespace Pluto
{
        public class PlanetHelper
        {
                //...
        }

        public class PlanetForm : Form
        {
                private ImageList               m_ImageList;
                //...
        }
}

Yes, I know it sounds strange, but moving the class resolved this problem...

Seang

-----Original Message-----
From: MSTSE Developer [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 9:48 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] ImageList/resource-problem


hy all,
 
I´ve the following problem:
 
I created a control and than added an ImageList to this control. I put
some pictures into the list and everything was fine.
There were no problems, neighter at designtime nor at runtime.
 
Now I´ve added only one little picture and changed the order of items.
The result is this exception:
 
//-----
An unhandled exception of type
'System.Resources.MissingManifestResourceException' occurred in
mscorlib.dll
 
Additional information: Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given assembly.  Make
sure "myControl.resources" was correctly embedded or linked into
assembly "myAssem". 
baseName: myClass locationInfo: myKA  resource file name:
myControl.resources  assembly: myAssem, Version=1.0.849.30802,
Culture=neutral, PublicKeyToken=null
//-----
 
I´ve deleted both outputdirs (bin and obj) and compiled the whole
solution again.
-> same prob
 
I also removed the ImageList from my control and removed any code that
uses this ImageList.
-> my program has compiled and run
 
Can anyone give me a hint, plz?
 
Thx in advanced
 
Dario

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to