0

As you know LinkLabel control in WinForms supports selection of an area of text (stored in .resx) that will act as link by specifying start and position and length in LinkArea property. But localized text can and will change this exact values as in example below:

"Visit our page now!" [6, 7]

"Посетите нашу страничку сегодня!" [9, 13]

Is there a way to overcome this issue without using special characters and other messy workarounds?

Reza Aghaei
  • 120,393
  • 18
  • 203
  • 398
Corio
  • 395
  • 7
  • 20
  • [`LinkArea`](http://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/LinkLabel.cs,be3deb0bd5eb942f) property is decorated with `Localizable` attribute and therefore it's localizable. – Reza Aghaei Sep 21 '17 at 07:31

1 Answers1

0

LinkArea property is decorated with Localizable attribute and therefore it's localizable.

So if you set Localizable property of the Form to true, then you can set different value for localizable properties of controls for different languages. This way, property values will store in separate resource files for different cultures.

For more information and links to how to create multi-language windows forma application, take a look at:

Reza Aghaei
  • 120,393
  • 18
  • 203
  • 398