dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.35k stars 965 forks source link

The comboBox incorrect display when setting its DropDownStyle as Simple in the DemoConsole application #11673

Closed MelonWang1 closed 2 weeks ago

MelonWang1 commented 1 month ago

.NET version

.Net 9.0: Main branch of Winforms repo

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No, it doesn't work in .NET 8.0 from Release/8.0 branch of Winforms repo. It has related designer issue 2707.

Issue description

Actual result in DemoConsole test app:

https://github.com/user-attachments/assets/e3df9627-5b12-43b8-a2b4-161e6a54acd8

Expected result:

https://github.com/user-attachments/assets/d34b47f5-c918-46d3-88cd-073589d9285c

Steps to reproduce

Test sample: DemoConsole in Winforms repo.

LeafShi1 commented 1 month ago

This issue will be fixed in PR #11363

Zheng-Li01 commented 2 weeks ago

Verified the issue with winforms repo main branch that the issue has been fixed that the comboBox display correctly when setting its DropDownStyle as Simple in the DemoConsole application as below screenshot. image