VS2019 - some ToolBox components greyed out
Asked Answered
C

2

5

I just installed VS2019 and can't figure out why most of the Toolbox components are disabled, only 'All Windows Forms' can be used.

enter image description here

I installed .NET Framework 4.8, but it still doesn't work. enter image description here

Chace answered 20/11, 2019 at 22:15 Comment(0)
A
6

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

  • Container
  • Resources
  • Component Tray
  • In-place editing
  • Designer Actions
  • Databinding
  • User Controls/Inherited Controls

are not supported in the .Net Core 3.0 Designer yet

You have to use the .Net Framework (newest Version is 4.7.2) until these things get added to .Net Core

Antoniettaantonin answered 20/11, 2019 at 22:38 Comment(2)
Downloaded both 4.7.2 and 4.8, installed, but they don't seem to show up in C#'s project properties... hmm... i.gyazo.com/99dba9657c93bb4924d7687b850ed40b.pngChace
GOT IT! I had to create the winform project not based on core, but framework!Chace
I
1

When you create your Project, you are asked to choose Project Type. For Windows Forms project, each of the languages VB and C# has two options. One is called just "Windows Form" and the other one is "Windows Form (.NET Framework)". You probably have chosen the first one while creating the project. Select the second one i.e. Windows Form (.NET Framework) and it should do the trick. Right now only those tools remain enabled in Toolbox which are supported by the current project type and .NET framework version. So do not expect to see everything enabled always.

Indigested answered 13/6, 2021 at 23:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.