Home » c# » Can't open design view on Visual Studio 2019 C# Windows Form Application-Exceptionshub

Can't open design view on Visual Studio 2019 C# Windows Form Application-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I’ve seen this problem on google a few times and I’ve seen people solve it, but whatever solution I saw and tried didn’t work. I saw things like

putting the “public partial class Form1 : Form” first, or pressing F7, or using the View tab to-go-to designer and etc, none has worked. I did manage to look at another file code Form1 Designer, but it was a code as well, different than the form’s code but still code, and when I run it it shows a blank page meaning that code does work, I just can’t visualize it. Can anyone help me, please?

Appreciate all the help 🙂

How to&Answers:

To check the target framework of your project, you can follow Project -> Properties... Application. And then you can see the target in the page.

enter image description here

If the target is .Net Framework, you can follow the steps provided by Flydog57.

If it is a Windows Forms App(.Net Core), there is no Designer by default.

The .NET Core Windows Forms designer is available with the Visual Studio 16.5 Preview 1. So you can try to update Visual Studio to Visual Studio 16.5 Preview 1 or a later version.

For more details, you can refer to this blog.

Updates to .NET Core Windows Forms designer in Visual Studio 16.5 Preview 1