Skip to content

[DarkMode]The Form1 title bar change to white color after change the ShowInTaskbar property #12992

@MelonWang1

Description

@MelonWang1

.NET version

.NET 10.0.100-preview.2.25118.3

Did it work in .NET Framework?

No

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

No, also repro in .NET 9.0 which it started to be supported.

Issue description

The Form1 title bar change to white color after change the ShowInTaskbar property.

Image

Steps to reproduce

  1. Create a winforms .NET Core project with a button control.
  2. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file.
  3. Double click button control and add below code to button click event.
    `this.ShowInTaskbar = !this.ShowInTaskbar;
  4. Build and run.
  5. Click button control.

More Info:

  1. This issue also repro in FormShowinTaskbar test in WinformsControlTest app.
darkshow.mp4

Metadata

Metadata

Labels

area-DarkModeIssues relating to Dark Mode featurehelp wantedGood issue for external contributors

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions