Problem with TableLayoutPanel on localizable forms

Problem with TableLayoutPanel on localizable forms

Post by Karel Kra » Wed, 01 Nov 2006 20:31:22


Hello, I have serious problem with TableLayoutPanel.
The same problem is described in post from James Minns (see bellow) with
the complete steps to reproduce. Is there any workaround?

***************
I have come across a bug which causes big problems with the
TableLayoutPanel
on non American Windows.

The layout of the rows and columns is completely garbled.

To reproduce the problem:
In the control panel, choose regional setting for Italy, say (anywhere
where
the decimal separator is a comma)
Create a TableLayoutPanel with three rows and make the height of each row
33.33% of the table.
Save the form - it still runs ok
Now set Localizable=True for the form. The damage is done.

All the row heights are moved from the designer.vb code to the resx file,
and because the Italian regional settings use the comma as a decimal
separator, the resx file contains to following:

Rows Styles="Percent,33,33333,Percent,33,33333,Percent,33,33333"

The next time you load the form from disk in Visual Studio, the above line
is parsed incorrectly - you get the following:
Row 1: Size Type: Percent Value 33,00%
Row 2: SizeType: 33333 Value <empty space>
Row 3: SizeType: 33 Value <empty space>

and your painstakingly formatted table is mangled. You've got to love that
sizetype=3333, it should be absolute, percent or autosize!

Workaround is to set control panel to USA until the resx is compiled, or
abandon TableLayoutPanel for foreign language apps.
Solution for Microsoft should be to store the Row Styles string using the
correct list separator symbol (semicolon here, comma in USA) or not use
regional settings at all when writing the resx file.

Microsoft, are you reading?

James
 
 
 

1. Problem - TableLayoutPanel causes form change when opened in IDE.

2. Q: Automate the creation of localizable forms

Hi everyone.
I am using the extensibility feature in the Visual Studio .net 2005 to
automate the creation of forms and child controls, using an add-in.

All successful, but I want to learn a method to make the created forms
Localizable, and then change their Language, then finally change captions of
the child controls to the translated versions of the captions.

Thanks.
Mazin A. Issa

3. Problem with ReadOnly property in user control under localizable=T

4. Localizable problem with menu and tab control

5. TableLayoutPanel problem

6. problems using the tablelayoutpanel in VS2005

7. problem tablelayoutpanel c# windows application

8. Refresh Problem on Nested Container, with DockStyle.Fill or TableLayoutPanel...

9. MCSE Bolt-on's

10. Color Palette Ad on's

11. [Wring Group] Help with Add-on's in IE7

12. Vista add-on's

13. AutoCAD LT Customization add-on's

14. multiple log on's on one xp profile

15. Web Part - Add on's