Skip to content

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

@DanLBarr

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.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions