Culture settings CodeSample - Setting in code
Categories: Culture & Language
|
Tags: Architects, Developers, Non English Cultures, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
Revision:
1
Posted:
20/Sep/2009
Updated:
04/Dec/2010
Status:
Publish
Types: Code
|
This article will have a few sections added to it soon, based on the following article type skeleton: CodeSample OverviewThis samplecode shows how to set Culture in code as well as showing the difference between Visual WebGui and Windows Forms applications in setting Culture info. VB.NET CodeVisual WebGui
System.Globalization.CultureInfo objCI = new System.Globalization.CultureInfo("En-US")
objCI.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd"
VWGContext.Current.CurrentUICulture = objCI
Windows Forms
System.Globalization.CultureInfo objCI = new System.Globalization.CultureInfo("En-US")
objCI.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd"
Thread.CurrentThread.CurrentCulture = objCI
Thread.CurrentThread.CurrentUICulture = objCI
C# CodeVisual WebGui
System.Globalization.CultureInfo objCI = new System.Globalization.CultureInfo("En-US");
objCI.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
VWGContext.Current.CurrentUICulture = objCI;
Windows Forms
System.Globalization.CultureInfo objCI = new System.Globalization.CultureInfo("En-US");
objCI.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
Thread.CurrentThread.CurrentCulture = objCI;
Thread.CurrentThread.CurrentUICulture = objCI;
About the author
Related Articles
|
Culture & Language
|
|
|
This article explains how to create a translated resource file.
Tags:
Developers, C#, Non English Cultures, 1. Beginner, 2. Intermediate, 3. Advanced, Customization, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, XML, Non English Cultures, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, Non English Cultures, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
|
|
|
|