By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,902 Members | 1,337 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,902 IT Pros & Developers. It's quick & easy.

Location of winform controls changed according to O/S language

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"Yongseung Kim" wrote:
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.