Skip to content

Disabled RichTextBox renders BackColor in padding area but not in client area under NET11 VisualStylesMode #15053

Description

@Olina-Zhang

.NET version

.NET 11 RC2 build: 11.0.100-rc.2.26455.110

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 after New APIs in .NET11

Issue description

Under VisualStylesMode = NET11, a disabled RichTextBox renders the configured BackColor in the padding area, while the client area continues to use the disabled system background color.
As a result, different background colors are displayed within the same control, creating a visually inconsistent disabled appearance.

No padding value set, only BackColor set:

Image

Set padding to 20, and set BackColor:

Image

Steps to reproduce

  1. Create a WinForms application targeting .NET 11.
  2. Add a RichTextBox to the form
  3. Set Enable to false, set Padding and BackColor
  4. Set VisualStylesMode to NET11
  5. Run the application to observe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NewApi-Net11Tracks issues for public APIs targeted for .NET 11.untriagedThe team needs to look at this issue in the next triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions