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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top