Click here to Skip to main content
15,890,982 members
Home / Discussions / C#
   

C#

 
GeneralRe: Easy Arithmetic question Pin
Colin Angus Mackay16-Mar-04 22:48
Colin Angus Mackay16-Mar-04 22:48 
GeneralRe: Easy Arithmetic question Pin
northernlights16-Mar-04 23:49
northernlights16-Mar-04 23:49 
GeneralRe: Easy Arithmetic question Pin
Chris Meech17-Mar-04 4:05
Chris Meech17-Mar-04 4:05 
GeneralRe: Easy Arithmetic question Pin
Manster17-Mar-04 4:39
Manster17-Mar-04 4:39 
GeneralRe: Easy Arithmetic question Pin
HAHAHA_NEXT17-Mar-04 10:51
HAHAHA_NEXT17-Mar-04 10:51 
GeneralRe: Easy Arithmetic question Pin
northernlights21-Mar-04 21:00
northernlights21-Mar-04 21:00 
QuestionHow to create text file for Resource file Pin
Inpreet Singh16-Mar-04 20:48
Inpreet Singh16-Mar-04 20:48 
AnswerRe: How to create text file for Resource file Pin
Heath Stewart17-Mar-04 4:43
protectorHeath Stewart17-Mar-04 4:43 
As I've been trying to tell you in an old thread, use a ResX file in VS.NET instead and mark it as an embedded resource. Forms and controls already have a hidden ResX file associated with them. You can use .txt files but you'll have to compile them manually - like I also said before - using resgen.exe to the appropriate name (fully-qualified name) and embedding them with the csc.exe compiler using the /res option.

If you use a ResX file, you can centralize/localize more than just string resources, including various structs and classes that have a TypeConverter associated with them.

I also gave you a link to check out that shows MANY examples of using the ResourceManager and even a code snippet, which I'll post again:
ResourceManager resources = new ResourceManager(typeof(SomeClass));
Use the code above is a .resources file would have the same namespace and name (fully-qualified name) as a class. If now, you have to use the name and get the assembly, something like:
ResourceManager resources = new ResourceManager("MyResources.resources",<br />
  this.GetType().Assembly);</pre>...where <code>this
is an instance of your class that will use the resources. You need to get the Assembly and this is one of many ways to do it (one of the faster ways).

Here's that link[^] again for the ResourceManager class.

 

Microsoft MVP, Visual C#
My Articles
GeneralQuestion on non-rectangular form Pin
Flack16-Mar-04 19:19
Flack16-Mar-04 19:19 
GeneralRe: Question on non-rectangular form Pin
Syed Abdul Khader16-Mar-04 19:47
Syed Abdul Khader16-Mar-04 19:47 
GeneralRe: Question on non-rectangular form Pin
Jeremy Kimball17-Mar-04 7:48
Jeremy Kimball17-Mar-04 7:48 
GeneralStarting and stopping exe Pin
SatyaDY16-Mar-04 18:47
SatyaDY16-Mar-04 18:47 
GeneralRe: Starting and stopping exe Pin
Heath Stewart16-Mar-04 19:15
protectorHeath Stewart16-Mar-04 19:15 
GeneralRe: Starting and stopping exe Pin
SatyaDY16-Mar-04 21:15
SatyaDY16-Mar-04 21:15 
GeneralRe: Starting and stopping exe Pin
Mazdak16-Mar-04 21:29
Mazdak16-Mar-04 21:29 
GeneralRe: Starting and stopping exe Pin
SatyaDY17-Mar-04 0:43
SatyaDY17-Mar-04 0:43 
GeneralAVI to MPEG-1 Encoder/Decoder Pin
Member 93555316-Mar-04 18:34
Member 93555316-Mar-04 18:34 
GeneralGDI+ Pin
cmarmr16-Mar-04 12:57
cmarmr16-Mar-04 12:57 
GeneralRe: GDI+ Pin
Judah Gabriel Himango16-Mar-04 16:15
sponsorJudah Gabriel Himango16-Mar-04 16:15 
GeneralRe: GDI+ Pin
Heath Stewart16-Mar-04 18:39
protectorHeath Stewart16-Mar-04 18:39 
GeneralRe: GDI+ Pin
cmarmr17-Mar-04 18:59
cmarmr17-Mar-04 18:59 
GeneralRe: GDI+ Pin
Heath Stewart19-Mar-04 2:37
protectorHeath Stewart19-Mar-04 2:37 
GeneralForcing textbox focus Pin
Amberite0016-Mar-04 10:28
Amberite0016-Mar-04 10:28 
GeneralIgnore that... Pin
Anonymous16-Mar-04 10:36
Anonymous16-Mar-04 10:36 
GeneralRe: Ignore that... Pin
Judah Gabriel Himango16-Mar-04 11:33
sponsorJudah Gabriel Himango16-Mar-04 11:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.