Click here to Skip to main content
16,011,467 members
Home / Discussions / C#
   

C#

 
GeneralDate / Time Pickers Pin
MrEyes1-Dec-03 23:49
MrEyes1-Dec-03 23:49 
GeneralRe: Date / Time Pickers Pin
Heath Stewart2-Dec-03 3:40
protectorHeath Stewart2-Dec-03 3:40 
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 
Changing the regional settings - unless you have the appropriate MUI packs for the version of Windows you're running (only on 2000 and XP currently, I believe) - doesn't change your language.

Instead, you need to provide a way to change it in your application. If you make a user preference to do this, you have to reset the controls based on the localization information in the satellite assembly. You don't have to re-instantiate the controls or add the controls to their would-be parent's Controls collection, but you do have to do practically everything else.

An easier way would be to add a key/value pair (say, "language", then the 5-digit lang-culture pair as the value) to your <appSettings>. In your application - either as the first lines in the main forms's constructor, or before you call Application.Run - read the setting with ConfigurationSettings.AppSettings["language"]. If a setting exists, set Thread.CurrentUICulture = new Culture(myLangSetting). Any other threads that are spawned from the main thread (which the UI must add, remove, and usually update controls on) should inherit the setting from the thread that spawned them.

 

-----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 4:17
CillyMe2-Dec-03 4:17 
GeneralRe: Localizable Pin
Heath Stewart2-Dec-03 4:26
protectorHeath Stewart2-Dec-03 4:26 
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 

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.