Link to home
Start Free TrialLog in
Avatar of rj94070
rj94070

asked on

How to create a resource file (C#, VS .NET 2003, Beginner's Level)

Solution must be applicable to VS .NET 2003.

How do I create a resource file for a project which is accessible by all source files in the project?
Let say I want to store 2 text strings ("red", "blue") in this resource file.
After adding these 2 strings to the resource file, how do I retrieve them in my C# code?

string myColor = GetStringResource(0)??? (I need function name  for this call.)

Thanks.
SOLUTION
Avatar of bman9111
bman9111

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rj94070
rj94070

ASKER

No, bman9111. That's too complicated for what I want to do.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rj94070

ASKER

Jatinder,
That article gives me some of the info I need regarding retrieval.
What I want to know is how to create a resource file WITHOUT having to write a program.
How do I use a text editor to create the file? What is the format of the file, etc.?
Thanks.
SOLUTION
Avatar of Eduard Ghergu
Eduard Ghergu
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rj94070

ASKER

Thanks, jatinderalagh. I think that reseditor is what I need. Great job.