Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tablelayout & autosize

Status
Not open for further replies.

VBmim

Programmer
Jun 25, 2001
361
BE
Hello,

I am making a user control containing a table layout with several labels in it. In the constructor of the user control, I translate the content of the labels (in the language the user defined for the app).
The column where the label is in is defined as autosize, but when the width is larger then as set at development time (because of larger translation), the width of the column does not adjust accordingly. The result is overlapping columns.

How can I resolve this?

I already tried these functions after translating the labels, but they all do not resolve my issue:

-tableLayout.Refresh();
-tableLayout.PerformLayout();
-tableLayout.Update();
-tableLayout.ColumnStyle[1].SizeType = SizeType.AutoSize;

Kind Greetings,

Mim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top