ResourceManager Question

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
 
M

Moty Michaely

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
 

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