What's new (Windows Forms .NET)
Windows Forms for .NET 5.0 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.0. For more information, see Breaking changes in Windows Forms.
Microsoft UI Automation patterns work better with accessibility tools like Narrator and Jaws.
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.
This may impact the layout of apps migrated from .NET Framework.
The following controls have been added since Windows Forms was ported to .NET Framework:
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.
A new web browser control with modern web support. Based on Edge (Chromium). For more information, see Getting started with WebView2 in Windows Forms.
- Supports collapsible groups
- Group subtitle, task, and title images
This dialog has been upgraded to use the modern Windows experience instead of the old Windows 7 experience.
Added support for ClientGuid.
ClientGuidenables 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. With
ClientGuid, an application can persist different states of the dialog within the same application.
Support added for ReadOnlySpan<T> to enhance performance of rendering text.