Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Form View Designer is NOT working in Visual Studio 2019 with using c# .NET Core 3.1 [duplicate]

When I am opening a visual studio project with VB.NET then Form view designer is automatically open but I open a new project with C# .NET Core 3.1 with Windows form then it is showing code of form1.cs. I tried alternate from solution explorer as well from view>>designer option but still not showing a form. What is going wrong there? I made google search for this but not found useful on this.

Please check in the image that I'm getting during the opening project.:

Please check in the image that I'm getting during the opening project.

like image 730
SRSENT Avatar asked Nov 06 '19 11:11

SRSENT


People also ask

How do I view a design in C#?

Select one of the mentioned classes like form or user control. Right-click it and from the context menu select View Designer (or simply Shift + F7 ). That will move you to the designer view.

Can't see Windows Form Designer?

We need to enable the designer in Visual Studio. Go to Tools > Options > Environment > Preview Features and select the Use the preview Windows Forms designer for . NET Core apps option.


1 Answers

Make sure you only have the form declared in your file. If you have more than one class defined, the design viewer will not work.

like image 177
jman Avatar answered Oct 19 '22 01:10

jman