No GUI for added existing Item in VB.NET 2017

Mark McCumber 431 Reputation points
2023-05-08T15:53:29.3+00:00

Hi Everyone,

I think I am missing something basic. I want to add a complicated form I designed in VS 2013 Professional. So I when through the steps of adding an existing item to my new project. However, when I try to run the project in debug mode I get the build error screen.

Can someone tell me how I can add the item and open it up in design mode so I can add new controls to the form?

Steps shown below.

Adding_Existing_Form_2

Adding_Existing_Form_3

Adding_Existing_Form_6

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,263 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 31,611 Reputation points Microsoft Vendor
    2023-05-09T04:43:23.0566667+00:00

    Hello @Mark McCumber ,

    Welcome to Microsoft Q&A forum.

    You can try to copy the three files into your new project folder, and right-click your new project > Add > Existing Item… > navigate to your new project folder, select only frmMain.vb file and click Add to add it > right-click the frmMain.vb file > View Designer. This should work.

    For build errors, if you click No and check the VS Output Window, is there any detailed error message? Perhaps you need to first build the project and verify that it can successfully build and then run the project. Please go to Tools > Options > Projects and Solutions > Build And Run > MSBuild project build output verbosity > change it to Detailed to get more detailed build error message.

    BTW, is there any code which needs to be modified like namespace maybe?

    Feel free to let us know the result.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.