Odd question about VS2010 and my project
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Odd question about VS2010 and my project

  1. #1
    Join Date
    Apr 2006
    Posts
    8

    Odd question about VS2010 and my project

    Sorry if this is not the correct forum for this question but none of the other alternatives seemed more appropriate.

    Basically I have a C++ .NET project in VS2010. Over time it's become quite large with multiple tabs and controls.

    I've noticed that when I open the designer (form1.h), that it immediately shows as needing to be saved (as if it's been modified).

    Very odd.

    Any ideas about what could be causing this?

    I realize it's a broad question with no source code but I thought maybe I'd take a shot.

    Thanks

    chuck

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,470

    Re: Odd question about VS2010 and my project

    What is the exact message?
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2006
    Posts
    8

    Re: Odd question about VS2010 and my project

    There's no message. Both form1.h in the designer and in the code view show that they have modifications (asterisk in tab beside file name) although no changes have been made.

  4. #4
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,359

    Re: Odd question about VS2010 and my project

    Copy the files before opening the designer related ones, then open the files in the designer and save them. Then do a diff on the files to see what's changed.

  5. #5
    Join Date
    Apr 2006
    Posts
    8

    Re: Odd question about VS2010 and my project

    Done. Good idea. Thanks.

    I found that some of my splitcontainers were changing sizes and the splitterdistance changing. Alltough I have no idea why yet.
    Last edited by chuckm; April 9th, 2014 at 01:12 PM.

  6. #6
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,591

    Re: Odd question about VS2010 and my project

    Interesting. I observe the same phenomenon in the main project I'm currently working on, but, following Arjay's advice from post #7, I found out that both the form's .h and .resx files remain completely unchanged aside from the updated modification time stamp. Looks like something is causing Forms Designer to perform some position/size recalculations, which, however, yield the same result as before, and then writes the unchanged values back to the files.

    It seems not to be strictly related to tab controls or the form's size. My form that's currently subject to the discussed effect is merely 290 x 290 in size and contains just two buttons and a table layout panel, which, in turn, contains one combo box and one button (the latter two being meant to be replicated at runtime to make up something that could be described as a scrollable array of control groups). I think it's rather related to container controls in general. I already obsereved this earlier in at least one or two other projects, and IIRC there had always been a split container involved.
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center