* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
3.4 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 |
|
|
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
-
How to: Align and Stretch a Control in a TableLayoutPanel Control
-
Walkthrough: Arranging Controls on Windows Forms Using a FlowLayoutPanel
-
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.