-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
area-DarkModeIssues relating to Dark Mode featureIssues relating to Dark Mode feature
Description
.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.

Steps to reproduce
- Create Winforms .NET application with targeting .NET 10
- Add a DataGridView control with DataGridViewTextBoxColumn in form designer
- Set app under Dark mode in program.cs file:
#pragma warning disable WFO5001
Application.SetColorMode(SystemColorMode.Dark);
#pragma warning restore WFO5001
- Build and run project
- Input something in DataGridViewTextBox, then select this cell
- Observe the color contrast between selected DataGridViewTextBox's Text color and Back color
Metadata
Metadata
Assignees
Labels
area-DarkModeIssues relating to Dark Mode featureIssues relating to Dark Mode feature