winforms icon indicating copy to clipboard operation
winforms copied to clipboard

DemoConsole app: The open button cannot be seen in TreeView Tasks dialog in Dark Mode

Open Zheng-Li01 opened this issue 7 months ago • 0 comments

.NET version

The latest 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+?

This is a regression issue, cannot reproduce on release/10.0-preview5 branch

Issue description

In DemoConsole test app of WinForms repo that the open button cannot be seen in TreeView Tasks dialog in Dark Mode

Image

Steps to reproduce

  1. Find the sample app: DemoConsole in Winforms repo
  2. Change it to .NET targeting only from Multi-targets
  3. Enable Dark mode by adding below code lines in the Program.cs file under DemoConsole project
#pragma warning disable WFO5001
        Application.SetColorMode(SystemColorMode.Dark);
#pragma warning restore WFO5001
  1. Run DemoConsole app
  2. Open the TreeView Tasks dialog under Use Grid(Snap to the grid) tab
  3. Observe the open button cannot be seen in TreeView Tasks dialog in Dark Mode

More info: The issue can reproduce all contorls which have the open button in the Tasks dialog, such as PictureBox, DataGidView etc.

Zheng-Li01 avatar Jun 19 '25 07:06 Zheng-Li01