how to load strings from resource?

P

Phil Da Lick!

Hi,

How do I load string out of the resources included with the assembly? Or
even better from another assembly? I'm trying to internationalize my app.

As I see it theres two ways - have a global language assembly that is
dynamically loaded on startup and supply multiple language versions of
this or have a series of language resources built into each assembly.
Whats the best way? And some samples would be nice.

Thanks.
 
H

Henk Verhoeven

Hi Phil

You can use
ResourceManager m_ResourceManager = new ResourceManager() --see msdn for
detailed information on this class

m_ResourceManager.GetString("ResourceStringKeyName")

henk
 

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