473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

how to load strings from resource?

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.
Nov 17 '05 #1
1 2118
Hi Phil

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

m_ResourceManager.GetString("ResourceStringKeyName ")

henk
"Phil Da Lick!" <ph***********@NOSPAM.hotmail.com> wrote in message
news:42***********************@ptn-nntp-reader01.plus.net...
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.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ed Sutton | last post by:
How can I load a resource from any namespace in my project? I have all my icons located under the following namespace: ..\resources\images\ For example, I can not figure out how to load them...
0
by: PontiMax | last post by:
Hi, when we used VB 6 to build all kinds of applications we applied the following technique to automatically assign resource strings to ui controls: Each control has a unique resource id (which...
1
by: Fredrik Melin | last post by:
Hi, How can I load a localized resource file without changing the UI culture? Sample: System is running in English (default) but I want to create a System.Resource.ResourceManager and...
5
by: Paul Cheetham | last post by:
Hi, I have some custom colour cursors which I have added to my c# project, and set them to be compiled as "Embedded Resource" It seems impossible to load a colour cursor using the standard...
10
by: Aris | last post by:
A few days ago I asked from you how to join a string like "file" A number that change values from 1 to 5 and another string like ".txt" to have a result like "file1.txt","file2.txt" and so on ...
0
by: Achim Domma | last post by:
Hi, I try to develop a localized Asp.Net 1.1 application. I have added two resource files to my app, which are called 'Labels.resx' and 'Labels.de.resx'. If I compile the app, I see a 'de'...
4
by: msnews.microsoft.com | last post by:
I am writing my first managed project and I am a bit confused in loading resource strings. In old unmanaged C++ if I had a resource string in my rc file called GX_ERR_DEVICE_ALREADY_OPEN. I would...
4
by: dwyer.bill | last post by:
My boss insists that whenever we use a string we place it in a resource file every single time. This goes for error string that are displayed through a message box, constants, ect. He claims that...
2
by: Mike P | last post by:
I've always put my connection strings in the web.config, but I've just recently seen an example of a connection string in a resource file. What are the advantages of doing this, and could you do it...
1
by: Alan | last post by:
Is there a way in C# to have the compiler enforce that users use Resource Strings? Say I have a logging subsystem, and I want make sure that the only string values that get logged come from a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.