dotnet /winforms
Windows Forms is a .NET UI framework for building Windows desktop applications.
★ 4,881⑂ 1,128👁 301⑃ 11,143● 4,029▤ 175
-1
日增长
4,881
stars
1,128
forks
301
watchers
11,143
prs
4,029
issues
175
releases
README
Windows Forms Windows Forms (WinForms) is a UI framework for building Windows desktop applications. It is a .NET wrapper over Windows user interface libraries, such as User32 and GDI+. It also offers controls and other functionality that is unique to Windows Forms. Windows Forms also provides one of the most productive ways to create desktop applications based on the visual designer provided in Visual Studio. It enables drag-and-drop of visual controls and other similar functionality that make it easy to build desktop applications. Windows Forms Out-Of-Process Designer For information about the WinForms Designer supporting the .NET runtime and the changes between the .NET Framework Designer (supporting .NET Framework up to version 4.8.1) vs. the .NET Designer (supporting .NET 6, 7, 8, 9+), please see Windows Forms Designer Documentation. Important: As a Third Party Control Vendor, when you migrate controls from .NET Framework to .NET, your control libraries _at runtime_ are expected to work as before in the context of the respective new TFM (special modernization or security changes in the TFM kept aside, but those are rare breaking changes). Depending on the richness of your control's design-time support, the migration of control designers from .NET Framework to .NET might need to take a series of areas with breaking changes into account. The provided link points out additional resources which help in that migration process. Relationship to .NET Framework This codebase is a fork of the Windows Forms code in the .NET Framework 4.8. We started the migration process by targeting .NET Core 3.0, when we've strived to bring the two runtimes to a parity. Since then, we've done a number of changes, including breaking changes, which diverged the two. For more information about breaking changes, see the [Porting guide][porting-guidelines]. The bar for innovation and new features WinForms is a technology which was originally introduced as a part of .NET Framework 1.0 on February 13th, 2002. It's primary focus was and is to be a Rapid Application Tool for Windows based Apps, and that principal sentiment has not changed over the years. WinForms at the time addressed developer's requests for A framework for stable, monolithic Line of Business Apps, even with extremely complicated and complex domain-specific workflows The ability to easily provide rich user interfaces A safe and - over the first 3 versions of .NET Framework - increasingly performant way to communicate across process boundaries via various Windows Communication Services, or access on-site databases via ADO.NET providers. A very easy to use, visual what-you-see-is-what-you-get designer, which requires little ramp-up time, and was primarily focused to support 96 DPI resolution-based, pixel-coordinated drag & drop design strategies. A flexible, .NET reflection-based Designer extensibility model, utilizing the .NET Component Model. Visual Controls and Components, which provide
Top issues
#7641[API Suggestion] Introduce Modern Visual Styles for Apps targeting .NET 11+ and Win 11+ for A11Y improvements. (Was DarkMode/VisualStyles)59 comments · 2022-08-23#9911Size of WinForms with PublishAot48 comments · 2023-09-14#3691MDI child windows use hard-coded Visual Style Rendering42 comments · 2020-08-04#11415Add WindowsFormsLifetime extensions to the .NET Generic Host40 comments · 2024-05-22#9508Refactor `PropertyStore` and review/update usage38 comments · 2023-07-17#6459Let's consider adding a faster, modern rendering engine for custom 2D and Text rendering like Skia or Direct2D/DirectWrite37 comments · 2022-01-02#2644Proposal: implement generic IList<T> on collection types35 comments · 2020-01-06#2543Make appearance of MenuStrip & ContextMenuStrip look native when RenderMode = System32 comments · 2019-12-21
Discussions
#15432Alternative lightweight rendering approach / custom UI library for WinForms0 comments · 2026-11-15#15380LatchLayout: an Aero-inspired WinForms workspace launcher0 comments · 2026-11-08#15137Yes/No control, to lock a list3 comments · 2026-09-17#15046Add Adaptive AutoSizeColumnsMode to DataGridView1 comments · 2026-09-06#14881Alpha transparency support in WinForms controls (TextBox vs Button)1 comments · 2026-08-12#14673How do i get to use the new winforms code after a merged change request?0 comments · 2026-06-24#14507Design data with possibility to select multiple preview sources in Designer0 comments · 2026-04-29#14506Reliable way to check if control is running in VisualStudio Designer0 comments · 2026-04-29
Latest release
.NET 10.0.8 v10.0.8 2026-05-12Release What's Changed [release/10.0]: Updating build agent image to VS 2022 GA release by @Shyam-Gupta in https://github.com/dotnet/winforms/pull/14314 [release/10.0] Source code updates from dotnet/dotnet by @dotnet-maestro[bot] in https://github.com/dotnet/winforms/pull/14297 [release/10.0] Source code updates from dotnet/dotnet by @dotnet-maestro[bot] in https://github.com/dotnet/winforms/pull/14315 [release/10.0] Source code updates from dotnet/dotnet by @dotnet-maestro[bot] in https://github.com/dotnet/winforms/pull/14318 [release/10.0]: Using VS2022 GA images for CI and CodeQL pi