How to replace string string for labels in Form1.Designers.cs?
Instead:
this.button1.Text = "TheButton";
this.label1.Text = "TheLabel";
I want to write:
this.button1.Text = Resources.ButtonText;
this.label1.Text = Resources.LabelText;
After changing the form in the visual designer (add some component and save), the VS code generator will turn the label text into a solid line:
this.button1.Text = Resources.ButtonText;
this.label1.Text = "TheLabel";
Does anyone know how to solve this problem?
source
share