[Dark Mode] The button background shouldn't have the status change when mouse over it after setting the UseVisualStyleBackColor as false
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
Description
### .NET version
.NET SDK 11.0.100-alpha.1.25619.109
### Did it work in .NET Framework?
No
### Did it work in any of the earlier releases of .NET Core or .NET 5+?
The issue can reproduce on .NET 10, not reproduce on .NET 9.0
### Issue description
The button background shouldn't have the status change when mouse over it after setting the UseVisualStyleBackColor as false
**.NET 11 Classic Mode:**
https://github.com/user-attachments/assets/45aff4ba-bfe5-40ba-b57f-e78d8020018d
**.NET 11 DarkMode:**
https://github.com/user-attachments/assets/4fc360cd-fa89-40d8-b02e-48ecc176d7d5
**.NET 9.0 DarkMode:**
https://github.com/user-attachments/assets/cde667ae-07f4-456a-91d6-58b118587d88
### Steps to reproduce
1. Create a .NET winforms project with a Button control
2. Setting the **UseVisualStyleBackColor** as **false** for the button1
3. Set app under Dark mode in program.cs file
`Application.SetColorMode(SystemColorMode.Dark);`
4. Run the application
5. Using mouse over the button1 control, and observe the background status
Contributor guide
Assessment
This issue has not been assessed yet.