none
Designer does not open form RRS feed

  • Question

  • Vb.net:
    Forms that have not changed for years are no longer opened by the designer. Error message: "The object reference was not set to an object instance"

    With the same development environment, older forms can be opened perfectly.

    Development system:

    Microsoft Visual Studio Enterprise 2019
    Version 16.3.10
    VisualStudio.16.Release/16.3.10+29519.87
    Microsoft .NET Framework
    Version 4.8.03761

    Friday, November 22, 2019 8:54 AM

All replies


  • Try this:

    Create a new form... copy all code from both the yourformname.vb and yourformname.designer.vb to the new form... then try and open the new form... if it works then you can rename the new for the same as the old and you should be good.

    More than likely the .resx file has references to old layout or some sort of processor incompatibility. 

    Good Luck,

    Robert


    Robert McArthur

    Saturday, November 23, 2019 5:27 AM
  • Hi Cumulus Granitus,

    Welcome to MSDN forum.

    I agree with Robert, and you could try Robert’s suggestions.

    In addition, does “build solution” function still works? If yes, you could also try to go to your solution/project folder then delete the hidden .vs folder and also delete bin and obj folder. After that try to rebuild your project and check if designer could open form this time.

    Hope this could help you.

    Best Regards,

    Tianyu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, November 25, 2019 2:27 AM
  • Hi friend,

    Did Tianyu's suggestion help you solve your issue?

    In addition, you can try to uncheck the option Optimize rendering for screens with different pixel densities

    Then close your VS and reopen your project again to try.

    We are looking forward to hearing from you.

    Best Regards,

    Perry


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, November 28, 2019 11:43 AM