Skip to content

[Dark Mode] The color contrast for selected DataGridViewTextBox is insufficient #13780

@Amy-Li03

Description

@Amy-Li03

.NET version

.NET 10 SDK build: 10.0.100-rc.1.25401.103

Did it work in .NET Framework?

Not tested/verified

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

Occurs when DarkMode feature involved

Issue description

When the application is in Dark Mode, the color contrast of DataGridViewTextBox is insufficient.
This issue does not occur in Classic Mode.

Image

Steps to reproduce

  1. Create Winforms .NET application with targeting .NET 10
  2. Add a DataGridView control with DataGridViewTextBoxColumn in form designer
  3. Set app under Dark mode in program.cs file:
#pragma warning disable WFO5001
      Application.SetColorMode(SystemColorMode.Dark);
#pragma warning restore WFO5001
  1. Build and run project
  2. Input something in DataGridViewTextBox, then select this cell
  3. Observe the color contrast between selected DataGridViewTextBox's Text color and Back color

Metadata

Metadata

Assignees

Labels

area-DarkModeIssues relating to Dark Mode feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions