Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resource files - linking

Status
Not open for further replies.

mrdance

Programmer
Apr 17, 2001
308
SE
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:

ResourceManager rm = 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 ---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top