Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/how-to-design-a-windows-forms-layout-that-responds-well-to-localization.md
T

3.2 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
Design a localization-friendly layout 03/30/2017
csharp
vb
TableLayoutPanel control [Windows Forms]
application design [Windows Forms], localization
Windows Forms, localization
localization [Windows Forms], Windows Forms layout
d13eff2d-701c-4b6e-8838-3885cbfb7223

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]

Additional resources

  1. How to: Align and Stretch a Control in a TableLayoutPanel Control

  2. Walkthrough: Arranging Controls on Windows Forms Using a FlowLayoutPanel

  3. How to: Span Rows and Columns in a TableLayoutPanel Control

  4. How to: Edit Columns and Rows in a TableLayoutPanel Control

  5. Walkthrough: Perform common tasks using designer actions

  6. Walkthrough: Arranging Controls on Windows Forms Using a TableLayoutPanel

  7. Walkthrough: Laying Out Windows Forms Controls with Padding, Margins, and the AutoSize Property

  8. How to: Support Localization on Windows Forms Using AutoSize and the TableLayoutPanel Control

  9. 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.

See also