| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
How to: Design a Windows Forms Layout that Responds Well to Localization |
03/30/2017 |
.net-framework |
|
article |
|
|
d13eff2d-701c-4b6e-8838-3885cbfb7223 |
11 |
dotnet-bot |
dotnetcontent |
wpickett |
How to: Design a Windows Forms Layout that Responds Well to Localization
Creating forms that are ready to be localized greatly speeds development for international markets. You can use the xref:System.Windows.Forms.TableLayoutPanel control to implement layouts that respond gracefully as controls resize due to changes in their xref:System.Windows.Forms.Control.Text%2A property values.
Example
This form demonstrates how to create a layout that proportionally adjusts when you translate displayed string values into other languages. This process of translation is called localization. For more information, see Localization.
There is extensive support for this task in Visual Studio. See also Walkthrough: Creating a Layout That Adjusts Proportion for Localization.
[!code-csharpSystem.Windows.Forms.TableLayoutPanel.LocalizableForm#1] [!code-vbSystem.Windows.Forms.TableLayoutPanel.LocalizableForm#1]
-
How to: Align and Stretch a Control in a TableLayoutPanel Control
-
Walkthrough: Arranging Controls on Windows Forms Using a FlowLayoutPanel
-
Walkthrough: Performing Common Tasks Using Smart Tags on Windows Forms Controls
-
Walkthrough: Arranging Controls on Windows Forms Using a TableLayoutPanel
-
Walkthrough: Laying Out Windows Forms Controls with Padding, Margins, and the AutoSize Property
-
How to: Support Localization on Windows Forms Using AutoSize and the TableLayoutPanel Control
-
Walkthrough: Creating a Resizable Windows Form for Data Entry
Compiling the Code
This example requires:
- References to the System, System.Data, System.Drawing and System.Windows.Forms assemblies.
For information about building this example from the command line for [!INCLUDEvbprvb] or [!INCLUDEcsprcs], see Building from the Command Line or Command-line Building With csc.exe. You can also build this example in [!INCLUDEvsprvs] by pasting the code into a new project. Also see How to: Compile and Run a Complete Windows Forms Code Example Using Visual Studio.
See Also
xref:System.Windows.Forms.TableLayoutPanel
xref:System.Windows.Forms.FlowLayoutPanel
Localization