J
John Baro
I have experienced a couple of times that when I compile a project it
removes settings from controls
This is the code for a label that WAS identical to the label below
If it makes a difference the one that "disappeared" was copied and a new one
was pasted and edited. (The one that disappeared was the source of the copy)
//Source Label
this.lblILegend.Location = new System.Drawing.Point(0, 0);
this.lblILegend.Name = "lblILegend";
this.lblILegend.TabIndex = 0;
Where is the rest of it?
//Pasted label (destination)
this.lblKPILegend.AutoSize = true;
this.lblKPILegend.BackColor = System.Drawing.Color.MistyRose;
this.lblKPILegend.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.lblKPILegend.Location = new System.Drawing.Point(216, 0);
this.lblKPILegend.Name = "lblKPILegend";
this.lblKPILegend.Size = new System.Drawing.Size(26, 20);
this.lblKPILegend.TabIndex = 947;
this.lblKPILegend.Text = "KPI";
this.lblKPILegend.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
TIA
JB
What is the question?
That is the question.
removes settings from controls
This is the code for a label that WAS identical to the label below
If it makes a difference the one that "disappeared" was copied and a new one
was pasted and edited. (The one that disappeared was the source of the copy)
//Source Label
this.lblILegend.Location = new System.Drawing.Point(0, 0);
this.lblILegend.Name = "lblILegend";
this.lblILegend.TabIndex = 0;
Where is the rest of it?
//Pasted label (destination)
this.lblKPILegend.AutoSize = true;
this.lblKPILegend.BackColor = System.Drawing.Color.MistyRose;
this.lblKPILegend.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.lblKPILegend.Location = new System.Drawing.Point(216, 0);
this.lblKPILegend.Name = "lblKPILegend";
this.lblKPILegend.Size = new System.Drawing.Size(26, 20);
this.lblKPILegend.TabIndex = 947;
this.lblKPILegend.Text = "KPI";
this.lblKPILegend.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
TIA
JB
What is the question?
That is the question.