Skip to content

Windows Forms NumericUpDown control up/down buttons black when ApplicationVisualStyles is false #14641

Closed

Description

@DanLBarr

Description

A simple Windows Forms application using .NET 10 with an NumericUpDown control on the form and ApplicationVisualStyles set to false, displays the up/down buttons of the NumericUpDown control as black.

Reproduction Steps

Create a Windows Forms project using .NET 10 in Visual Studio 2026. Add a NumericUpDown control to the form. Add ApplicationVisualStyles false (using the appropriate ApplicationVisualStyles XML tag) in the .csproj file. Run the program and you will see that the up/down buttons are black.

Expected behavior

I would expect that the up/down buttons of the NumericUpDown control would be the normal gray color.

Actual behavior

The up/down buttons of the NumericUpDown control are black.

Regression?

In .NET 9 and earlier, the NumericUpDown buttons were gray when ApplicationVisualStyles was false.

Known Workarounds

Set ApplicationVisualStyles to true. However, this is not always an acceptable workaround.

Configuration

Microsoft.NETCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Windows 11 Pro
version 25H2
build 26200.8655
Windows Feature Experience Pack 1000.26100.315.0

Other information

In the NumericUpDown control code.

Activity

  1. added
    untriaged
    on Jun 11, 2026
  2. dotnet-policy-service commented on Jun 11, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-numerics
    See info in area-owners.md if you want to be subscribed.

  3. added
    untriaged
    on Jun 12, 2026
  4. self-assigned this
    on Jun 12, 2026
  5. added
    💥 regression-release
    and removed
    untriaged
    on Jun 12, 2026
  6. Olina-Zhang commented on Jul 3, 2026

    @Olina-Zhang
    Member

    Tested in the latest .NET 11 Preview 7 build: 11.0.100-preview.7.26352.103 + built private dls from the main branch of Winforms repo, it was fixed when ApplicationVisualStyles is false:

    Image
  7. added this to the 11.0-preview7 milestone on Jul 3, 2026
  8. locked and limited conversation to collaborators on Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

💥 regression-release

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions