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

C#

 
GeneralMenuItem adding and removing at run time Pin
StephenMcAllister30-Jul-04 15:10
StephenMcAllister30-Jul-04 15:10 
GeneralRe: MenuItem adding and removing at run time Pin
Heath Stewart30-Jul-04 19:19
protectorHeath Stewart30-Jul-04 19:19 
GeneralDisabling Mouse wheel scrolling - Scenario Pin
Tristan Rhodes30-Jul-04 14:16
Tristan Rhodes30-Jul-04 14:16 
GeneralRe: Disabling Mouse wheel scrolling - Scenario Pin
Heath Stewart30-Jul-04 19:08
protectorHeath Stewart30-Jul-04 19:08 
GeneralMessage pump exception catching Pin
Hugo Hallman30-Jul-04 13:21
Hugo Hallman30-Jul-04 13:21 
GeneralRe: Message pump exception catching Pin
Heath Stewart30-Jul-04 19:06
protectorHeath Stewart30-Jul-04 19:06 
GeneralApplication displaying Japanese, German, and English text. Pin
jerrycainjr30-Jul-04 12:28
jerrycainjr30-Jul-04 12:28 
GeneralRe: Application displaying Japanese, German, and English text. Pin
Heath Stewart30-Jul-04 12:59
protectorHeath Stewart30-Jul-04 12:59 
I'm not sure I quite understand your question, but if you're printing to the console, you're grossly limited by the font support for the console. Even with Windows Forms you must use a font that contains glyphs for the character you want. Some font formats will specify what character sets they support. See a previous thread where I posted some code for EnumFontFamilies(Ex) that enumerated this information (all chracter sets for all font families).

Now, what I think you're asking is how to display one culture in the UI while the OS is set to another. This is done by setting Thread.CurrentCulture to a CultureInfo (like new CultureInfo("de-DE") for German region and language) for regional settings (dates, times, numbers) and Thread.CurrentUICulture for determining which CultureInfo classes like the ResourceManager and ComponentResourceManager should use for resolving resource files (that would contain localized strings and other types with TypeConverters that can convert from/to strings).

If you've used the designer to localize an app (bad idea with VS.NET 2002 and 2003 which uses the ResourceManager, as the number of calls necessary adds a lot of size to your assembly and slows performance; VS 2005 will use the ComponentResourceManager which is more efficient in the way it works), then you have to set Thread.CurrentUICulture before InitializeComponent is called. If you want to swap languages at runtime, you need to extract the initialization code (not the instantiation code, though - you only want to instantiate controls and support types once) and call a method that re-runs that code (basically).

Be sure to read Developing World-Ready Applications[^] in the .NET Framework SDK for more information.

 

Microsoft MVP, Visual C#
My Articles
GeneralHighlighting a object selected & dynamic resizing Pin
smartyosu30-Jul-04 12:18
smartyosu30-Jul-04 12:18 
Generaltab control problem Pin
blankg30-Jul-04 10:59
blankg30-Jul-04 10:59 
Generaldifferentiating between MouseDown and single click Pin
smartyosu30-Jul-04 9:28
smartyosu30-Jul-04 9:28 
GeneralRe: differentiating between MouseDown and single click Pin
Heath Stewart30-Jul-04 9:32
protectorHeath Stewart30-Jul-04 9:32 
GeneralEvent Handler Pin
eggie530-Jul-04 7:42
eggie530-Jul-04 7:42 
GeneralRe: Event Handler Pin
Heath Stewart30-Jul-04 8:25
protectorHeath Stewart30-Jul-04 8:25 
QuestionWhere is the Activitybar? Pin
matthias s.30-Jul-04 4:36
matthias s.30-Jul-04 4:36 
Questionhow can i navigate between controls on a form using enter key in c# Pin
ch_faf30-Jul-04 4:01
ch_faf30-Jul-04 4:01 
AnswerRe: how can i navigate between controls on a form using enter key in c# Pin
Michael P Butler30-Jul-04 4:21
Michael P Butler30-Jul-04 4:21 
AnswerRe: how can i navigate between controls on a form using enter key in c# Pin
Heath Stewart30-Jul-04 7:36
protectorHeath Stewart30-Jul-04 7:36 
GeneralArray´s via reflection... Pin
Norman-Timo30-Jul-04 3:09
Norman-Timo30-Jul-04 3:09 
GeneralRe: Array´s via reflection... Pin
leppie30-Jul-04 7:30
leppie30-Jul-04 7:30 
GeneralRe: Array´s via reflection... Pin
Norman-Timo1-Aug-04 19:42
Norman-Timo1-Aug-04 19:42 
GeneralConsole.writeline not working from a windows app. Pin
Admiral Ackbar30-Jul-04 3:00
Admiral Ackbar30-Jul-04 3:00 
GeneralRe: Console.writeline not working from a windows app. Pin
Wender Oliveira30-Jul-04 4:41
Wender Oliveira30-Jul-04 4:41 
GeneralRe: Console.writeline not working from a windows app. Pin
Michael P Butler30-Jul-04 4:54
Michael P Butler30-Jul-04 4:54 
GeneralRe: Console.writeline not working from a windows app. Pin
Heath Stewart30-Jul-04 7:32
protectorHeath Stewart30-Jul-04 7:32 

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.