Skip to content

[Dark Mode] TextBox and MaskTextedBox Control backcolor is not dark When set the readonly property is true #11894

@MelonWang1

Description

@MelonWang1

.NET version

.NET SDK 9.0.100-rc.1.24415.1 + build private dll form winforms repo release/9.0 branch

Did it work in .NET Framework?

No

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

This is a new feature Dark Mode: #11857.

Issue description

TextBox and MaskTextedBox Control backcolor is not dark when set the readonly property is true.
readonly

Steps to reproduce

  1. Create a WinForms .NET Core application
  2. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in program.cs file.
  3. Add a TextBox and MaskTextedBox Control and set their readonly property to true.
  4. Run the application.
  5. Observe the result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-DarkModeIssues relating to Dark Mode feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions