Windows Forms is a .NET UI framework for building Windows desktop applications.
Перейти к файлу
Loni Tra 90b550b489 Add regression test for 176a013 2024-09-23 16:25:37 -07:00
.config/1espt Remove -pt Images and Add Baselining File (#11223) 2024-04-16 10:40:57 -07:00
.github Update main to 10.0 alpha (#11883) 2024-08-14 15:45:29 -07:00
docs Update the Debugging document reference output paths TFM to net9.0 (#12122) 2024-09-11 17:02:45 -07:00
eng [main] Update dependencies from dotnet/runtime (#12202) 2024-09-23 12:36:04 +00:00
pkg Replaced period 2 spaces with period 1 space, fix a few obvious misspellings part of #11984 (#12028) 2024-09-04 11:25:43 -07:00
src Add regression test for 176a013 2024-09-23 16:25:37 -07:00
.editorconfig Moved suppression for informational message to editorconfig file. (#12173) 2024-09-18 12:28:48 -07:00
.gitattributes mark verified files as lf and utf8 (#11630) 2024-07-09 12:03:52 -07:00
.gitignore Ignore changes to VS Code settings (#10992) 2024-03-06 10:19:35 -08:00
CODEOWNERS add code owners to make adding PR reviewers easier (#61) 2018-11-19 14:06:42 -06:00
CODE_OF_CONDUCT.md Standardize docs formatting (#233) 2019-01-07 16:35:08 -06:00
CONTRIBUTING.md Fix coding style link in CONTRIBUTING.md (#10450) 2023-12-08 15:04:16 -08:00
CodeMaid.config Fix issue with showing groups in the Inspector when groups are disabled (#4677) 2021-03-29 12:15:32 +11:00
Directory.Build.props Enable NuGet Audit and Fix Errors (#12120) 2024-09-12 13:41:44 -07:00
Directory.Build.targets Enable code coverage for integration tests 2024-02-02 14:51:01 -06:00
LICENSE.TXT Initial commit of (squashed) sample from https://github.com/dotnet/arcade-minimalci-sample 2018-10-15 14:54:25 -05:00
NuGet.config Enable NuGet Audit and Fix Errors (#12120) 2024-09-12 13:41:44 -07:00
README.md rephrased a statement in the readme file (#12165) 2024-09-17 16:54:37 -07:00
Restore.cmd Use native tools present on the machine rather than bootstraped tools in CI build (#7841) 2022-09-26 07:58:08 +00:00
SECURITY.md Add SECURITY.md 2020-02-26 01:48:44 +00:00
THIRD-PARTY-NOTICES.TXT Place Test-Only Notice Alongside Test (#9906) 2023-09-13 21:09:20 +00:00
WinForms.vsconfig Updated NativeHost.PlatformToolset version (#5797) 2021-09-21 09:56:48 -07:00
Winforms.sln System.Drawing.Primitives types should not require BinaryFormatter in Clipboard operations (#12080) 2024-09-10 13:56:12 -07:00
azure-pipelines-PR.yml Enable internal builds using new arcade templates (#11480) 2024-06-03 17:21:42 -07:00
azure-pipelines-richnav.yml Disable PR triggers for azure-pipelines-richnav.yml (#10861) 2024-02-12 11:29:52 +01:00
azure-pipelines.yml Enable Binskim (#12126) 2024-09-12 17:46:16 +00:00
build.cmd Use native tools present on the machine rather than bootstraped tools in CI build (#7841) 2022-09-26 07:58:08 +00:00
build.sh Make shell files in eng/common executable (#940) 2019-05-08 13:24:36 -07:00
codecov.yml Remove System.Design and Drawing from codecov.yml file (#10678) 2024-01-17 11:53:40 +08:00
global.json [main] Update dependencies from dotnet/runtime (#12202) 2024-09-23 12:36:04 +00:00
start-code.cmd Add local dev convenience scripts (#3389) 2020-06-04 13:51:06 +10:00
start-vs.cmd Fix VS experience (#4007) 2020-09-25 10:08:35 -05:00

README.md

Windows Forms

License: MIT

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.

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 their own design-time functionality through Control Designers

Over time, and with a growing need to address working scenarios with multi-monitor, high resolution monitors, significantly more powerful hardware, and much more, WinForms has continued to be modernized.

And then there is the evolution of Windows: When new versions of Windows introduce new or change existing APIs or technologies - WinForms needs to keep up and adjust their APIs accordingly.

And exactly that is still the primary motivation for once to modernize and innovate, but also the bar to reach for potential innovation areas we either need or want to consider:

  • Areas, where for example for security concerns, the Windows team needed to take an depending area out-of-proc, and we see and extreme performance hit in WinForms Apps running under a new Service Pack or a new Windows Version
  • New features to comply with updated industry standards for accessibility.
  • HighDPI and per Monitor V2-Scenarios.
  • Picking up changed or extended Win32 Control functionality, to keep controls in WinForms working the way the Windows team wants them to be used.
  • Addressing Performance and Security issues
  • Introducing ways to support asynchronous calls interatively, to enable apps to pick up migration paths via Windows APIs projection/Windows Desktop Bridge, enable scenarios for async WebAPI, SignalR, Azure Function, etc. calls, so WinForms backends can modernized and even migrated to the cloud.

What would not make the bar:

  • New functionality which modern Desktop UIs like WPF or WinUI clearly have already
  • Functionality, which would "stretch" a Windows Desktop App to be a mobile, Multi-Media or IoT app.
  • Domain-specific custom controls, which are already provided by the vast variety of third party control vendors

Please note

⚠️ This repository contains only implementations for Windows Forms for .NET platform.
It does not contain either:

  • The .NET Framework variant of Windows Forms. Issues with .NET Framework, including Windows Forms, should be filed on the Developer Community or Product Support websites. They should not be filed on this repository.
  • The Windows Forms Designer implementations. Issues with the Designer can be filed via VS Feedback tool (top right-hand side icon in Visual Studio) or be filed in this repo using the Windows Forms out-of-process designer issue template.

How can I contribute?

We welcome contributions! Many people all over the world have helped make this project better.

How to Engage, Contribute, and Provide Feedback

Some of the best ways to contribute are to try things out, file bugs, join in design conversations, and fix issues.

Reporting security issues

Security issues and bugs should be reported privately via email to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter. Also see info about related Microsoft .NET Core and ASP.NET Core Bug Bounty Program.

Code of Conduct

This project uses the .NET Foundation Code of Conduct to define expected conduct in our community. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer at conduct@dotnetfoundation.org.

License

.NET (including the Windows Forms repository) is licensed under the MIT license.

.NET Foundation

.NET Windows Forms is a .NET Foundation project.
See the .NET home repository to find other .NET-related projects.