Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Windows Forms for .NET 5 adds the following features and enhancements over .NET Framework.
There are a few breaking changes you should be aware of when migrating from .NET Framework to .NET 5. For more information, see Breaking changes in Windows Forms.
Enhanced features
Microsoft UI Automation patterns work better with accessibility tools like Narrator and Jaws.
Improved performance.
The VB.NET project template defaults to DPI SystemAware settings for high DPI resolutions such as 4k monitors.
The default font matches the current Windows design recommendations.
Caution
This may impact the layout of apps migrated from .NET Framework.
New controls
The following controls have been added since Windows Forms was ported to .NET Framework:
System.Windows.Forms.TaskDialog
A task dialog is a dialog box that can be used to display information and receive simple input from the user. Like a message box, it's formatted by the operating system according to parameters you set. Task dialog has more features than a message box. For more information, see the Task dialog sample.
Microsoft.Web.WebView2.WinForms.WebView2
A new web browser control with modern web support. Based on Edge (Chromium). For more information, see Getting started with WebView2 in Windows Forms.
Enhanced controls
-
- Supports collapsible groups
- Footers
- Group subtitle, task, and title images
System.Windows.Forms.FolderBrowserDialog
This dialog has been upgraded to use the modern Windows experience instead of the old Windows 7 experience.
System.Windows.Forms.FileDialog
Added support for ClientGuid.
ClientGuid
enables a calling application to associate a GUID with a dialog's persisted state. A dialog's state can include factors such as the last visited folder and the position and size of the dialog. Typically, this state is persisted based on the name of the executable file. WithClientGuid
, an application can persist different states of the dialog within the same application.
System.Windows.Forms.TextRenderer
Support added for ReadOnlySpan<T> to enhance performance of rendering text.
See also
.NET Desktop feedback