Unwanted changes to designer file
-
I have a windows form that inherits numerous controls from a parent form. Whenever I open the child form in the designer, I immediately get an asterisk that the file has unsaved changes, before I have changed anything. When I look at the .designer.cs file, numerous lines have been added, such as below:
Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
// other designer code that was there before
this.ultraGridValidator.DisplayLayout.Appearance = appearance1;
...And numerous lines have changed throughout the designer file (mostly locations and sizes):
this.configTab.Size = new System.Drawing.Size(766, 295); // just the numbers have changed
When I open the base form in the designer, I get the asterisk, but usually nothing has changed. Sometimes locations / sizes have changed, even though I haven't moved anything. Obviously we're using Infragistics, but I don't know if that's the cause of the problem. I only suspect it because most of the lines added are related to the grid. I am also suspicous of the toolbar we recently added, just because of the timing. I have read msdn articles regarding problems with editing complex controls on inherited forms, but we're not trying to edit anything. We're just trying to keep things from randomly changing! Has anyone seen anything like this? And any suggestions on how to fix it? It's killing productivity on our gui. This is .NET 2.0 with Infragistics 6.1. I tried the latest VS service pack, but no luck. Any help would be appreciated. Thanks in advance.
-
I have a windows form that inherits numerous controls from a parent form. Whenever I open the child form in the designer, I immediately get an asterisk that the file has unsaved changes, before I have changed anything. When I look at the .designer.cs file, numerous lines have been added, such as below:
Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
// other designer code that was there before
this.ultraGridValidator.DisplayLayout.Appearance = appearance1;
...And numerous lines have changed throughout the designer file (mostly locations and sizes):
this.configTab.Size = new System.Drawing.Size(766, 295); // just the numbers have changed
When I open the base form in the designer, I get the asterisk, but usually nothing has changed. Sometimes locations / sizes have changed, even though I haven't moved anything. Obviously we're using Infragistics, but I don't know if that's the cause of the problem. I only suspect it because most of the lines added are related to the grid. I am also suspicous of the toolbar we recently added, just because of the timing. I have read msdn articles regarding problems with editing complex controls on inherited forms, but we're not trying to edit anything. We're just trying to keep things from randomly changing! Has anyone seen anything like this? And any suggestions on how to fix it? It's killing productivity on our gui. This is .NET 2.0 with Infragistics 6.1. I tried the latest VS service pack, but no luck. Any help would be appreciated. Thanks in advance.
-
I've noticed this when I'm working with files via sourcesafe, and I switch to design mode or html mode.