Visual studio 2019 windows forms designer

后端 未结 6 523
独厮守ぢ
独厮守ぢ 2020-12-20 13:44

I\'m having a problem with the windows form application . When I create the windows form application , it displays the source code for the form but not the designer layout

相关标签:
6条回答
  • 2020-12-20 14:21

    I have tried the suggestion by Danielle, but it appears to be a circular reference to other articles Olia. A plethora of comments also say that what Olia is suggesting, does not work, and at the end, you need to do the following.

    Solution

    Download Visual Studio 16.6.0 Preview 2.1 from here. This works.

    0 讨论(0)
  • 2020-12-20 14:24

    To enable the designer, download and install the Windows Forms .NET Core Designer VSIX package.

    See article: https://devblogs.microsoft.com/dotnet/introducing-net-core-windows-forms-designer-preview-1/

    0 讨论(0)
  • 2020-12-20 14:25

    This happened to me as well.

    I was using the wrong template (.net core when I wanted to use the full .net framework which allows you to edit the form as you were used to in vs 2017 or previous versions).

    0 讨论(0)
  • 2020-12-20 14:26

    As of version 16.8.0 Preview 2.1 I have found that I have to turn off this setting and restart and add my form. Once added, I can turn it back on, restart and work.

    0 讨论(0)
  • 2020-12-20 14:29

    I had the same problem. The following steps helped me

    1. Remove any other classes than the Form class in the yourformname.cs file
    2. Unload the project and right click on the project and choose edit project
    3. Make sure yourformname form has the SubType set to form <SubType>Form</SubType> and save the file
    4. Reload the project
    0 讨论(0)
  • 2020-12-20 14:39

    I am using 16.6.5 and it appears after you first created the project, you have to run the project in order for IDE to pickup the form.cs.

    0 讨论(0)
提交回复
热议问题