1

I am busy building a login form that allows the user to choose their preferred language. When the language is changed in the dropdown, then all the controls are intended to match the new language. This bit works well.

The unexpected behaviour is that after changing to French then back to English, the size of the columns in the TableLayoutPanel change. This change is happening as part of the call to Apply Resources in the LocalizedForm.cs class.

There doesn't appear to be any similar issues on StackOverflow, or found via a Google search.

The code for the project is in my glowing-tribble Github repository.

The English (default) layout: The expected image layout

The French translation layout: enter image description here

Re-selecting the English translation and the unexpected and undesired change to the positioning of the TableLayoutPanel. The unexpected change in layout

The form localization code was found on StackOverflow

I have been going round in circles with this issue for more time than I care to admit.

Community
  • 1
  • 1
Neil Stoker
  • 284
  • 3
  • 16
  • It appears that the column size settings are being cleared *sometimes* when a culture change is being imposed. But not always. I have a work around in play, but aren't totally happy with having to do this. – Neil Stoker Mar 02 '17 at 10:02
  • It also appears that a number of labels and text boxes are also being resized - back to tracking down an answer. – Neil Stoker Mar 02 '17 at 15:51
  • did you somehow solve this issue? I am pretty interested in your workaround. – Pulle Dec 07 '17 at 13:03
  • No, we ended up dropping the project. – Neil Stoker Dec 12 '17 at 15:23

0 Answers0