Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Unwanted changes to designer file

Unwanted changes to designer file

Scheduled Pinned Locked Moved C#
helpcsharpcssvisual-studiographics
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    ndoran
    wrote on last edited by
    #1

    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.

    E 1 Reply Last reply
    0
    • N ndoran

      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.

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      I've noticed this when I'm working with files via sourcesafe, and I switch to design mode or html mode.

      N 1 Reply Last reply
      0
      • E ednrgc

        I've noticed this when I'm working with files via sourcesafe, and I switch to design mode or html mode.

        N Offline
        N Offline
        ndoran
        wrote on last edited by
        #3

        Thanks for the reply. I do remember this happening when I've used sourcesafe in the past, but we are using svn. And just to clarify, this is a windows form. Thanks.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups