Skip to content

[VisualStylesMode: Net11] DomainUpDown and NumericUpDown do not use the Windows accent color when focused with VisualStyleMode = NET11 #14763

Description

@Olina-Zhang

.NET version

.NET 11.0.100-preview.7.26365.114 + Private dlls built from Net11/Integration-2 branch of https://github.com/KlausLoeffelmann/winforms repo

Did it work in .NET Framework?

Yes

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

Not support, new feature

Issue description

When VisualStyleMode is set to NET11, TextBox correctly uses the Windows accent-colored focus indicator when focused.
However, DomainUpDown and NumericUpDown continue to display the traditional focus border instead of using the configured Windows accent color, resulting in inconsistent focus visuals across input controls.

TextBox:

Image

DomainUpDown/NumericUpDown:

Image

Steps to reproduce

  1. In Windows Settings > Personalization > Colors, select a noticeable Accent color (e.g. Red).
  2. Create a WinForms application targeting .NET 11.
  3. Set the Form's VisualStyleMode to NET11.
  4. Add a TextBox, DomainUpDown, and NumericUpDown to the Form.
  5. Run the application.
  6. Click each control (or use Tab) to give it focus to observe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions