You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows Forms NumericUpDown control up/down buttons black when ApplicationVisualStyles is false #14641
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.
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:
Activity
dotnet-policy-service commentedon Jun 11, 2026
Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.
Olina-Zhang commentedon Jul 3, 2026
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: