Skip to content

[Dark Mode] The button background shouldn't have the status change when mouse over it after setting the UseVisualStyleBackColor as false #14155

@Zheng-Li01

Description

@Zheng-Li01

.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:

ClassicModeResults.mp4

.NET 11 DarkMode:

DarkModeResults.mp4

.NET 9.0 DarkMode:

DrakMode90Results.mp4

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions