Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I installed visual studio 2019 version 16.4.1
When try to create winforms application cannot see design window.
add button manually OK.but still no design window
Where is a problem? ?????
P.S in WPF working fine

What I have tried:

add button manually OK.but still no design window
Where is a problem? ?????
P.S in WPF working fine
Posted
Updated 11-Dec-19 7:31am

Most likely, there is a problem with your code - the designer uses the whole code (myfile.cs and myfile.designer.cs) to "build" the designer window.

Close the solution, create a new one with just a default WinForms project and see if the designer appears.
If it does, you have done something silly with the code in your original project.
If it doesn't, then either the WinForms template is corrupt, or VS is.

You can try looking at the Winforms template file: Locate templates - Visual Studio | Microsoft Docs[^] and perhaps fixing it (or finding a "pure" copy") but it may be easier to uninstall and reinstall VS.
 
Share this answer
 
Maybe this will help: Window > Reset Window Layout

More tips here: winforms - Windows form has disappeared in Visual Studio form designer - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900