Windows form controls disappeared

c#, controls, screen, visual-studio, winforms

Solution

Wow how annoying! This drove me nuts so I wasted 45 minutes trying to fix it w/out having to re-add the control which would be super annoying (plus this is the 3rd or 4th time this has happened to me in VS 2017 in last few weeks).

For me the solution was to find my control in the Designer file (via "Go To Implementation"). I found out then that the ".Add" line for that control was simply gone? After I manually added it back myself and saved it magically re-appeared in my Windows Form Design view. Screenshot below for reference.

My setup:

- Windows 7 x64

- Visual Studio 2017 Pro x64

- Windows C# Forms project

- Missing controls (most of time) have been inside a panel object

Problem

I have a windows forms project that seems to have lost all of its controls in the design view. When I run the project the controls appear as they should. Only the design view is broken in visual studio for this form, all other forms are the same. I have tried reopening the solution and reopening the file to no avail. I have also tried cleaning and rebuilding the solution to no avail. I have made a video screen capture describing the problem What should I try next?

Original source

Related problems