Frage

For some reason one of our forms reads all UI element data from its corresponding resx file. We want all data to be explicitly assigned in the code instead.

E.g. Our resx file contains the location of our forms buttons:
Name: radioButton1.Location
Type: System.Drawing.Point
Value: 7; 68

In InitializeComponent, the data is then loaded by the ApplyResources function:

resources.ApplyResources(this.radioButton1, "radioButton1");

For this project, this is unnecessary. We want to assign the UI data without reading some bloated resource file!

Q: How did this resource binding occur and how do we revert it to the standard behavior?

War es hilfreich?

Lösung

Setting the form's Localizable property to false solved the issue.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top