[DarkMode] the checked/unchecked items cannot be seen after clicking the CustomComCtl32Button button in DarkMode for WinformsControlTest project
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 85
Description
### .NET version
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+?
Repro in Release/10.0 branch, not reproduce Release/9.0 branch
### Issue description
The checked/unchecked items cannot be seen after clicking the CustomComCtl32Button button in DarkMode
https://github.com/user-attachments/assets/76e1c085-f5ea-491c-a49a-84c81bade82e
### Steps to reproduce
Test the sample app: [WinformsControlTest ](https://github.com/dotnet/winforms/tree/main/src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/WinformsControlTest ) in Winforms repo, then clicking the CustomComCtl32Button button in DarkMode
Or using attached project
[ReproduceApplication.zip](https://github.com/user-attachments/files/25731489/ReproduceApplication.zip)
**More info:**
The issue can reproduce when setting the FlatStyle as Standard/System, not reproduce when setting the FaltStyle as Flat/Popup.
Contributor guide
Assessment
This issue has not been assessed yet.