Location of winform controls changed according to O/S language

  • Thread starter Thread starter Yongseung Kim
  • Start date Start date
Y

Yongseung Kim

Hi,

I would like to describe as clear as I can(sorry my english is quite
limited)

1. I made a project with vb.net on english XP Pro
(The project has a winform with several general controls such as Textbox,
label, groupbox)

2. I copied the project to a PC installed with korean XP Pro.

3. I opened the winform in the visual studio

4. I found a very strange problem about the form layout.
Almost all the controls has moved to a diffrent location of themselves
without any reason
and the layout seemed to me quite messy.

5. The other way around was also the same.
If I do it from Korean XP to English XP, it gives me the same prob.
I spent almost three weeks without a solution and now really tired.
Please help me out this long jerney.
Thank you very much for reading this article.

Yong
 
I think I might be able to offer some more help than in my previous email.

We have recently noticed that forms with the 'MinimumSize' and 'MaximumSize' values set to the same as the original size of the form will have trouble with controls being in the wrong place. This will also be a problem if the form has a fixed border.

Korean XP seems to apply some sort of size scaling to the controls (possibly to allow for the Korean text). If the forms do not allow any resize (as with the conditions described above) then the controls will resize but the form will not and the form will end up with odd layouts. Having different anchoring on the controls will also lead to odd positions.

To fix the problem we changed the 'MinimumSize' and 'MaximumSize' of the form to be 0,0. This allows the form to resize with the controls inside it.

Also if you have any user controls that do not respond to a resize event (we have OpenGL controls that do not resize well) you may have problems. Try to get these controls to respond to resize events so they can scale up with the other windows.

Hope this helps,

Regards,
Jon.
 
Back
Top