Click here to Skip to main content
15,901,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: Date / Time Pickers Pin
MrEyes2-Dec-03 3:51
MrEyes2-Dec-03 3:51 
QuestionConverting a string to System.Drawing.Color? Pin
thomasa1-Dec-03 21:53
thomasa1-Dec-03 21:53 
AnswerRe: Converting a string to System.Drawing.Color? Pin
Rocky Moore1-Dec-03 23:40
Rocky Moore1-Dec-03 23:40 
AnswerRe: Converting a string to System.Drawing.Color? Pin
je_gonzalez2-Dec-03 11:52
je_gonzalez2-Dec-03 11:52 
GeneralLocalizable Pin
CillyMe1-Dec-03 19:13
CillyMe1-Dec-03 19:13 
GeneralRe: Localizable Pin
Heath Stewart2-Dec-03 3:34
protectorHeath Stewart2-Dec-03 3:34 
GeneralRe: Localizable Pin
CillyMe2-Dec-03 4:17
CillyMe2-Dec-03 4:17 
GeneralRe: Localizable Pin
Heath Stewart2-Dec-03 4:26
protectorHeath Stewart2-Dec-03 4:26 
Actually, I think you missed my point. If you use a drop-down, this implies that you're UI is already running (unless you use a modal dialog before calling Application.Run, which can be tricky depending on a number of factors). If you do this, to change the UI culture you have to completely reset EVERY SINGLE CONTROL in your application. This is especially tedious when you have multiple forms. Switching languages while a program is running - especially larger programs - is definitely not a trivial thing.

If users require different languages on their Windows machine, then they might just have the appropriate MUI pack installed and enabled. They will see the appropriate localized UI automatically. If you just require this for testing, use the config file. If nothing else, companies that require a different localized UI can change the config file when - for native applications - they would change the registry (using the registry for .NET apps is not recommended). It's not like users are going to be changing the UI culture often, right? Smile | :) Why make it much more difficult on yourself.

That's what I was getting at - keep it simple. Assign the UI Culture before you start your application (which means the main UI thread, which will effect all threads spawned from it). You'll save yourself A LOT of trouble.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Localizable Pin
CillyMe2-Dec-03 15:53
CillyMe2-Dec-03 15:53 
QuestionHow can i create vedio file from collection of images in C# Pin
KRathor1-Dec-03 18:43
KRathor1-Dec-03 18:43 
AnswerRe: How can i create vedio file from collection of images in C# Pin
Heath Stewart1-Dec-03 18:59
protectorHeath Stewart1-Dec-03 18:59 
GeneralRe: How can i create vedio file from collection of images in C# Pin
KRathor1-Dec-03 19:10
KRathor1-Dec-03 19:10 
GeneralPassing Data between forms Pin
Jeff Patterson1-Dec-03 17:47
Jeff Patterson1-Dec-03 17:47 
GeneralRe: Passing Data between forms Pin
Nick Parker1-Dec-03 18:26
protectorNick Parker1-Dec-03 18:26 
GeneralRe: Passing Data between forms Pin
Jeff Patterson2-Dec-03 16:06
Jeff Patterson2-Dec-03 16:06 
GeneralWierd IO Pin
Tatham1-Dec-03 16:33
Tatham1-Dec-03 16:33 
GeneralRe: Wierd IO Pin
Heath Stewart1-Dec-03 18:47
protectorHeath Stewart1-Dec-03 18:47 
GeneralPassing in Function name to be called Pin
obelisk291-Dec-03 15:38
obelisk291-Dec-03 15:38 
GeneralRe: Passing in Function name to be called Pin
azusakt1-Dec-03 15:59
azusakt1-Dec-03 15:59 
GeneralRe: Passing in Function name to be called Pin
Nick Parker1-Dec-03 17:32
protectorNick Parker1-Dec-03 17:32 
GeneralRe: Passing in Function name to be called Pin
Corinna John1-Dec-03 19:12
Corinna John1-Dec-03 19:12 
GeneralDrawing routed lines Pin
Member 961-Dec-03 14:13
Member 961-Dec-03 14:13 
QuestionUse for attributes in C#? Pin
JoeRocket1-Dec-03 13:31
JoeRocket1-Dec-03 13:31 
AnswerRe: Use for attributes in C#? Pin
Colin Angus Mackay1-Dec-03 13:59
Colin Angus Mackay1-Dec-03 13:59 
GeneralManaged DirectSound resources Pin
Oyvind Bratland1-Dec-03 8:56
Oyvind Bratland1-Dec-03 8:56 

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.