winforms
winforms copied to clipboard
Windows Forms is a .NET UI framework for building Windows desktop applications.
Related #11227 ### Test System.Windows.Forms.Tests.TextBoxBaseTests.TextBoxBase_Undo_CanUndo_Success ### Issue description The case failed in [PR build](https://dev.azure.com/dnceng-public/public/_build/results?buildId=712790&view=ms.vss-test-web.build-test-results-tab&runId=17822834&resultId=110643&paneView=debug), the failed scenario: - TextBoxBase_Undo_CanUndo_Success **Error Message:** - **In X86 unit:** - Assert.Equal() Failure: Strings differ...
Related #11227 ### Test System.Windows.Forms.Tests.TextBoxBaseTests.TextBoxBase_Copy_PasteNotEmpty_Success ### Issue description The case failed in [PR build](https://dev.azure.com/dnceng-public/public/_build/results?buildId=712790&view=ms.vss-test-web.build-test-results-tab&runId=17822834&resultId=110705&paneView=debug), the failed scenario: - System.Windows.Forms.Tests.TextBoxBaseTests.TextBoxBase_Copy_PasteNotEmpty_Success **Error Message:** - **In X86 unit:** - Assert.Equal() Failure: Strings differ...
### .NET version dotnet-sdk-9.0.100-preview.5.24258.1 ### Did it work in .NET Framework? Yes ### Did it work in any of the earlier releases of .NET Core or .NET 5+? _No response_...
Fixes #11449 ## Proposed changes - Modify the ProcessCmdKey() method to support space key. - Make a focus on the MenuStrip after the user hits enter to check it. ##...
1. replace use cases of [SetLocalAppContextSwitchValue](https://github.com/search?q=repo%3Adotnet%2Fwinforms%20SetLocalAppContextSwitchValue&type=code) in tests with custom scope for each switch see [BinaryFormatterScope](https://github.com/search?q=repo%3Adotnet%2Fwinforms%20BinaryFormatterScope&type=code) example. 2. Replace use cases of TestAccessor like this one - https://github.com/dotnet/winforms/blob/29528171490190df28fd4afc89dee271ebfef68b/src/System.Windows.Forms/tests/IntegrationTests/UIIntegrationTests/Dpi/FormDpiTests.cs#L111 with AppContext...
Fixes #11450 ## Proposed changes - - Remove RenderMode - ## Screenshots ### Before  ### After  ## Test environment(s) 9.0.0-preview.6.24305.2 ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/winforms/pull/11502)
Fixes [designer/issues/2707](https://github.com/microsoft/winforms-designer/issues/2707) ## Root Cause We use `_requestedHeight` to set the height of a ComboBox when `DropDownStyle` is `ComboBoxStyle.Simple` https://github.com/dotnet/winforms/blob/70a6a7b4a9af452160e636838f946b3f4327383c/src/System.Windows.Forms/src/System/Windows/Forms/Controls/ComboBox/ComboBox.cs#L61-L63 Let's go through the repro steps that was described here...
### .NET version .NET SDK: Version: 9.0.100-preview.5.24307.3 Commit: 35b2c21ea6 Workload version: 9.0.100-manifests.6407b7e4 MSBuild version: 17.11.0-preview-24279-02+b963c24ef Runtime Environment: OS Name: Windows OS Version: 10.0.19045 OS Platform: Windows RID: win-x64 Microsoft.WindowsDesktop.App 9.0.0-preview.5.24306.8...
### .NET version dotnet-sdk-9.0.100-preview.5.24258.1 ### Did it work in .NET Framework? Yes ### Did it work in any of the earlier releases of .NET Core or .NET 5+? _No response_...
Trimming WinForms will require a set of [feature switches](https://github.com/dotnet/designs/blob/main/accepted/2020/feature-switch.md) to be used similar to [other feature switches](https://github.com/dotnet/runtime/blob/main/docs/workflow/trimming/feature-switches.md) when trimming WinForms applications. Exploring the trim warnings from the [TrimTest project](https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms/tests/IntegrationTests/TrimTest/TrimTest.csproj) shows...