Home > Net >  Having issues displaying forms in Visual Studio
Having issues displaying forms in Visual Studio

Time:02-10

I am creating a project using Windows Forms on the .NET framework. It's created and everything looks fine.

But when I close and reopen the project, the form designer is gone (form.cs and form.Designer.cs are still there but the actual form template is gone).

Can someone help?

i have uploaded a picture for better understanding.

enter image description here

CodePudding user response:

You're in folder view. From VS you probably did File > Open > Folder. From here, you need to actually open the solution. Double click on the .sln file within the Solution Explorer of VS. That will open up the solution and load the projects, and do the proper nesting of your code behind and designer files.

Next time, you can just open the solution file directly from Windows File Explorer or in VS via File > Open > Project/Solution, then you won't have to waste time in folder view.

  • Related