2

I use two languages in Visual Basic 2015: English and German. Studio creates resource files with strings of translation text: *Ge.resx and *En.resx.

Problem: when I switch language, changing not only the text, but the location of controls, sizes, their backgrounds image. How do I prevent this? Is some property of control? I want in all languages all controls have same properties (size, location, images), except text.

Note :

I apologize if this topic has already been and sorry for my english. I could not think how to describe the problem in a few words to effectively use the search.

sujith karivelil
  • 28,671
  • 6
  • 55
  • 88
DenisM
  • 21
  • 1

1 Answers1

0

Changing the location and size of controls is part of the .Net localization process as what may fit on a regular sized button (for example) in one language may not fit when another language is used. A word in one language may be only 5 characters long but in a different language could be 15 characters long.

When you change the form to be Localizable, a new resource file is created for each language which holds the language specific data.(You need to "Show All Files" to see them)

For example, here is a form with Danish and Afrikaans language files.

Resource files

You can edit these files if you want to remove the sizing parts of them.

enter image description here

This question details the steps another user took which may help you.

Proper localization of a WinForms application

Community
  • 1
  • 1
Kuffs
  • 35,581
  • 10
  • 79
  • 92