.NET Core Windows Forms Designer

By FoxLearn 7/19/2024 2:19:00 AM   12.24K
To enable the designer for Windows Forms Application using .NET Core 3.0 in Visual Studio 2019, you should download and install the Windows Forms .NET Core Designer VSIX package.

.NET Core Winforms Designer VSIX package: Link

.net core winforms designer

After you install .NET Core Designer, Visual Studio will automatically add the controls to the Visual Studio Toolbox.

Controls .NET Core Windows Forms Designer Preview 1 support:

  • Pointer
  • Button
  • Checkbox
  • CheckedListBox
  • ComboBox
  • DateTimePicker
  • Label
  • LinkLabel
  • ListBox
  • ListView
  • MaskedTextBox
  • MonthCalendar
  • NumericUpDown
  • PictureBox
  • ProgressBar
  • RadioButton
  • RichTextBox
  • TextBox
  • TreeView

Features not making the support cut include:

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

Creating a new .Net Core Windows Forms Application project.

.net core windows forms application

then you can drag some controls from the Visual Studio Toolbox to your winform and create a simple UI as shown below.

.net core winforms designer

If you get an error when rebuilding your project as shown below.

Assets file '<path>\project.assets.json' not found. Run a NuGet package restore to generate this file.

Restore nuget packages console

You can select Tools menu from your Visual Studio => NuGet Package Manager => Package Manager Console, then enter the command as shown below.

>dotnet restore

package manager consolePress F5 to run your project.

Throught this post, I hope so you can use .NET Core 3.0 Winforms Designer in Visual Studio using the Microsoft Preview of .NET Core WinForms Designer.

VIDEO TUTORIAL