I am new to resourcefiles. I have created two .resx files with strings, the names of these files are:
us-en.resx
se-sv.resx
Now I want to read those strings. The files are in a folder called "lang".
I try to write the following:
dim rm as new ResourceManager("us-en.resx", Assembly.GetExecutingAssembly());
MessageBox.Show(rm.GetString("testname"));
I get an error that it tries to locate a file called us-en.resx.resources and it says me to check if it's correctly linked to the assembly. Why does it add ".resources" and how do I link to my file?
thanks
--- neteject.com - Internet Solutions ---
us-en.resx
se-sv.resx
Now I want to read those strings. The files are in a folder called "lang".
I try to write the following:
dim rm as new ResourceManager("us-en.resx", Assembly.GetExecutingAssembly());
MessageBox.Show(rm.GetString("testname"));
I get an error that it tries to locate a file called us-en.resx.resources and it says me to check if it's correctly linked to the assembly. Why does it add ".resources" and how do I link to my file?
thanks
--- neteject.com - Internet Solutions ---