MultilingualForm Sample: Demonstrates Creating and Localizing Windows Forms
The MultilingualForm sample demonstrates creating and localizing windows forms. It shows how to use the Windows Forms designer to create, edit, and build localized applications.
For more information about localized applications, see Globalizing and Localizing.
Building and Running the Sample
To build and run this sample
- Open the solution MultilingualForm.sln.
- From the Build menu, click Build Solution.
- From the Debug menu, click Start Without Debugging.
- To see a different culture's resources, type a valid RFC 1766 culture name into the edit box and click the switch button. (This sample only comes with resources for "en-US" and "ko-KR".)
To localize your own Windows Forms or Web Forms
- Select the form to be localized in the appropriate forms designer.
- Set the form's Localizable property to true.
- For each language you want to localize to, do the following:
- Set the form's Language property to the desired language.
- Enter the new text in the new language for each control.
You can also change the appearance of the form's controls (size, position, and so on) for each language.
Classes and Keywords
This sample demonstrates the following classes:
This sample demonstrates the following keywords:
System.Windows.Forms.Form.Localizable; System.Windows.Forms.Form.Language; System.Resources; System.Resources.ResourceManager