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
DomainUpDown/NumericUpDown size and location cannot be restored after changing and resetting Font #15331
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, also repro in .NET 8
Issue description
After changing and resetting the Form's Font, changing the Font of a DomainUpDown or NumericUpDown control causes the control's size and/or location to change unexpectedly in the WinForms Designer.
After resetting the control's Font, the control does not return to its original size and location. Using Undo also does not restore the original layout.
The issue reproduces with both DomainUpDown and NumericUpDown.
FontIssue.mp4
Steps to reproduce
Create a WinForms application.
Add a DomainUpDown and a NumericUpDown control to the Form.
Change the Form's Font to a different font or font size.
Reset the Form's Font.
Change the Font of the DomainUpDown or NumericUpDown control.
Observe the control's size and location.
Reset the control's Font.
Observe the control's size and location again.
Use Undo to try to restore the previous layout.
Actual behavior
After changing the control's Font:
The control's width and/or location changes.
Resetting the control's Font does not restore the original size and location.
Using Undo does not restore the control to its original size and location.
As a result, the control can remain incorrectly sized or positioned in the Designer even after the Font property has been reset.
Expected behavior
After resetting the control's Font, the control should return to the appropriate size and position based on the original font.
Undo should also restore the control's previous size and location.
Activity
Zheng-Li01 commentedon Nov 19, 2026
Verified the issue with .NET 12.0.0-alpha.1.26568.110, the issue has been fixed as below screenshot.
15331.mp4