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

C#

 
Questionarchitecture Pin
AndyInUK2-Aug-11 0:18
AndyInUK2-Aug-11 0:18 
AnswerRe: architecture Pin
Łukasz Nowakowski2-Aug-11 1:04
Łukasz Nowakowski2-Aug-11 1:04 
GeneralRe: architecture Pin
AndyInUK2-Aug-11 1:55
AndyInUK2-Aug-11 1:55 
AnswerRe: architecture Pin
Not Active2-Aug-11 2:07
mentorNot Active2-Aug-11 2:07 
AnswerRe: architecture [modified] Pin
PIEBALDconsult2-Aug-11 2:50
mvePIEBALDconsult2-Aug-11 2:50 
AnswerRe: architecture Pin
V.2-Aug-11 3:48
professionalV.2-Aug-11 3:48 
AnswerRe: architecture Pin
Dan Mos2-Aug-11 4:01
Dan Mos2-Aug-11 4:01 
Questionmissing resources Pin
lukeer2-Aug-11 0:17
lukeer2-Aug-11 0:17 
Hi experts,

there is a project called MyProject. It compiles to a file called MyProjectAssembly.exe.
Since it has to support multiple languages, there is also a resource file MyProject.resx, which contains string-typed keys and string-typed values.

I can, in code, gain access to the strings via
C#
string translatedValue = MyProject.KeyForTranslatedValue


Now there are some strings that I don't know the keys for at compile time. Therefore I have the application process KeyForTranslatedValue and get the translated string via
C#
string translatedValue = Properties.Resources.ResourceManager.GetString("KeyForTranslatedValue");


The mentioned Properties.Resources.ResourceManager cannot find the string and therefore returns null. It seems to be able to retrieve some other resources (numbers, icons, ...) that are language-independent and are stored in Project Explorer -> RightClick -> Properties -> Resources.

Is this normal behaviour?

Can I redirect Properties.Resources.ResourceManager to the langugage-dependent resources? Would that be stupid?

Should I use a separate ResourceManager for the language-dependent resources?

Ciao,


luker

GeneralRe: missing resources Pin
Shameel2-Aug-11 5:50
professionalShameel2-Aug-11 5:50 
QuestionDatagrids Pin
Beetle Juice1-Aug-11 23:29
Beetle Juice1-Aug-11 23:29 
Questionhiding process arguments Pin
navish011-Aug-11 21:25
navish011-Aug-11 21:25 
AnswerRe: hiding process arguments Pin
Shameel1-Aug-11 23:24
professionalShameel1-Aug-11 23:24 
GeneralRe: hiding process arguments Pin
navish012-Aug-11 1:58
navish012-Aug-11 1:58 
GeneralRe: hiding process arguments Pin
Dave Kreskowiak2-Aug-11 4:19
mveDave Kreskowiak2-Aug-11 4:19 
GeneralRe: hiding process arguments Pin
Shameel2-Aug-11 5:20
professionalShameel2-Aug-11 5:20 
QuestionOpening multiple instances of the same form and Identification. Pin
MAW301-Aug-11 15:58
MAW301-Aug-11 15:58 
AnswerRe: Opening multiple instances of the same form and Identification. Pin
Dr.Walt Fair, PE1-Aug-11 18:30
professionalDr.Walt Fair, PE1-Aug-11 18:30 
AnswerRe: Opening multiple instances of the same form and Identification. [modified] Pin
Shameel1-Aug-11 22:08
professionalShameel1-Aug-11 22:08 
AnswerRe: Opening multiple instances of the same form and Identification. Pin
BillWoodruff2-Aug-11 23:05
professionalBillWoodruff2-Aug-11 23:05 
Questionhow to get virtual memory using wmi Pin
anaidy0u1-Aug-11 15:57
anaidy0u1-Aug-11 15:57 
QuestionHow do you dynamically assign a datagrid's headers in c#? Pin
Xarzu1-Aug-11 15:05
Xarzu1-Aug-11 15:05 
QuestionHow to work with generic date format Pin
Gali19781-Aug-11 9:58
Gali19781-Aug-11 9:58 
AnswerRe: How to work with generic date format Pin
#realJSOP1-Aug-11 12:01
mve#realJSOP1-Aug-11 12:01 
AnswerRe: How to work with generic date format Pin
Luc Pattyn1-Aug-11 12:47
sitebuilderLuc Pattyn1-Aug-11 12:47 
GeneralRe: How to work with generic date format Pin
Dalek Dave1-Aug-11 12:49
professionalDalek Dave1-Aug-11 12:49 

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.