Culture Builder Application Sample
This sample allows you to define and register one or more custom cultures. With the CultureBuilderSample application included with the sample, you can create new cultures and register them on your computer, either by using a predefined culture as a base, or by mixing elements of more than one culture. You can also customize values associated with any of the predefined cultures included with the .NET Framework.
For information about using the samples, see the following topics:
To build the sample using the Command Prompt
Open the Command Prompt window and navigate to one of the language-specific subdirectories under the CultureSample directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.
Type msbuild CultureSampleCS.sln or msbuild CultureSampleVB.sln, depending on your choice of programming language.
To build the sample using Visual Studio
Open Windows Explorer and navigate to one of the language-specific subdirectories under the CultureSample directory.
Double-click the CultureSampleCS.sln or CultureSampleVB.sln file, depending on your choice of programming language, to open it in Visual Studio.
In the Build menu, select Build Solution.
The application will be built in the default \bin or \bin\Debug subdirectory.
To run the sample
Open Windows Explorer and navigate to the directory that contains the executable.
Double-click the icon for the CultureBuilderSample application.
The sample builds a Windows Forms application. You can start and run it like any Windows application.
The sample makes extensive use of the CultureInfo, NumberFormatInfo and DateTimeFormatInfo types to load, create, and modify culture-specific values. These classes, along with other types defined in the System.Globalization namespace, are used to define culture-related information such as the country and region, the language and the script in which it is written, the calendar, and the format information for strings, numbers, dates, times, and currency.
The ComboBox control on the CultureBuilder form, which contains a list of available cultures, does not include custom cultures you create, even after those cultures are registered on your computer.