ResourceManager Question

  • Thread starter Thread starter Mario
  • Start date Start date
M

Mario

Hello,

I have a resource file add in my VS2008 solution called
myresource.resx

If I run the below it works fine

ResourceManager myRM = new ResourceManager
("ConsoleApplication2.myresource", Assembly.GetExecutingAssembly());

Any ideas why I can't run it like this ?

ResourceManager myRM = new ResourceManager("myresource",
Assembly.GetExecutingAssembly());

Many Thanks
MK
 
Hello,

I have a resource file add in my VS2008 solution called
myresource.resx

If I run the below it works fine

ResourceManager myRM = new ResourceManager
("ConsoleApplication2.myresource", Assembly.GetExecutingAssembly());

Any ideas why I can't run it like this ?

ResourceManager myRM = new ResourceManager("myresource",
Assembly.GetExecutingAssembly());

Many Thanks
MK

Hey,

You have to give the fully qualified name space of the resource for
the resource manager to identify it.

M
 
Back
Top