I have a number of forms that have a number of Infragistics controls on them. If I open these forms and simply close them, Visual Studio 2008 tells me they have been modified.
I copied off the designer file of one of the forms, opened it and then closed and saved the changes. Then I I did a diff the size of an UltraGrid increased by 4 pixels (285 to 289). Each time after that I open and close the form, VS2008 tells me there is a change, but the size is staying consistent at 289.
Any thoughts?
Sam
Hi Sam,
I'm not sure I understand what you mean about the grid size. First you say it's changing in the designer file, but then you say it's staying constant. Do you mean it's changing the first time and then never again?
The grid doesn't control it's own size. There's no code in the grid to modify the size of the grid itself. If something is changing the size of the grid, it would have to be the container it's in. Is the grid docked or anchored? What kind of container is it in?
I am sorry, what I mean is:
The IDE (Visual Studio 2008) displays the dialog stating the designer file has changed.
The first time I did a DIFF (WinMerge.com) of the original file and the "changed designer file" the ONLY thing in the whole file that changed was the size of the UltraGrid, from 295 to 298 or something. Nothing else changed in the WHOLE file.
The second and third times I opened the form in the IDE and then closed it, the IDE continued to tell me the designer file had changed. Each time I checked the designer file, the size value was the same it was after the initial save, aka this value was NOT actually changing, though the IDE thought it did change.
I'm afraid I don't have an explanation for either of these behaviors. As I said, there's nothing in the grid itself that would cause the size of the grid to change. This could be explained by the fact that some container control is sizing the grid, perhaps. But if the grid is not even resizing the second and subsequent times and the designer still thinks that something is dirty, then there's really not enough information here for me to guess what might be causing it.
One thing you might do is check the Undo list in Visual Studio. The little dropdown arrow on next to the undo button on the toolbar will give you a list of changes to be undone. If there are any changes on the list, the name of the change might give us some clue as to what's causing the form to be dirtied.
If that does not help, then the next thing I would try it to make a backup copy of the project and make sure the problem still happens with the copy. Then remove controls one at a time from the form until the problem goes away so you can narrow it down to a single control.