Copying Over Forms in VS2022

Todd Lerew 60 Reputation points
2024-11-20T18:05:56.2533333+00:00

Hello everyone.

I am having an issue in VS2022 that I have never had before and do not know why.

I work for a company and I have created our ERP System in Visual Studio. We constantly add things or make changes to the programs, forms, reports, etc. There are three different people who work on this project, but I am the lead. We recently upgraded from VS2008 to VS2022, programming in Visual Basic. When one of us three makes changes to any windows forms, they copy the changed forms over to a shared folder that I copy to my project directory and empty the folder. I do all the updates/publishes on my copy of VS2022, so that data does not get overwritten. We have been doing this for a while with no issues. The last time I copied forms over and included them in my project, they did not come over as windows forms. When I include them in my project, in solution explorer, you can see all three files for a windows form, by the icon next to the form name in solution explorer isn't an form icon, it says "VB". If you click on it, all you see is the code. You cannot see "Form View". So I cannot add or edit any controls on the form itself. I have deleted the form, got an old one from a previous backup, and the same thing. This has never happened before - we have been copying and consolidating our project like this for years. Anyone have any idea why it is doing this? I can't even re-copy my original form back into my project, because it does the same thing.

I am very confused.

Thanks,

Todd

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,221 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,742 questions
{count} votes

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.