locked
Designer from version 1.3 to version 2.0 RRS feed

  • Question

  • Hi,

    I have a small problem with VS2008 designer.

    I have converted a VB project to VS2008 and it runs fine.

    However, when I open a form and modify a control into it, the designer modify the ".resx" file.

    It looks like the designer modify the .resx from version 1.3 to version 2.0. (Doing a diff file before and after the modification). Both version of the .resx are different in a lot of places.

    The .vb file is also modified. It seems that System.Resources.ResourceManager isn't used anymore and it has been replaced by System.ComponentModel.ComponentResourceManager by the designer. There's a lot more modifications done by the designer in this file too.

    The solution still compile without errors but when I run it, some controls are hidden. The .resx file has been modified by the designer so the location are not good anymore and the controls are offset outside the screen.

    I have a lot of form and don't want to manually fix them one by one. How can I stop the designer from modifying  the .resx? Or is there anyway to automatically fix this problem?

    Thank you!
    Monday, September 8, 2008 7:49 PM

Answers

  • Found a solution to this odd problem.
     

    My form has a gridcontrol inside a panel (panel1) and this panel is inside an other panel (panel2). Those panel are from a base form that my form inherit.

    Panel1 is Protected Friend but Panel2 is only Friend.

    So if I modify my form and save it, the designer will migrate my form and its resx to version 2. But since the panel2 is only friend, the designer won't apply resource to it inside my form. I know this is suppose to be done in the base form.

    But if I set the panel2 as Protected Friend and modify and save my form, the designer will then add panel2 related stuff in my form and its resx file.

    Well, the only thing I had to do is to but that panel2 as Protected Friend! Sounds odd...

    Thanks again.
    Wednesday, September 10, 2008 2:09 PM