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
TextBox and ComboBox are too tall in Net11 visual styles #14938
In VisualStylesMode.Net11, single-line TextBox and ComboBox controls are taller than their classic counterparts and contain excessive vertical whitespace.
This is especially noticeable in forms containing multiple input controls and in layouts such as TableLayoutPanel, where the larger preferred heights increase row heights and make existing forms appear more widely spaced after switching to the modern visual style.
Reproduction
Create a WinForms application targeting .NET 11.
Place single-line TextBox and ComboBox controls next to equivalent controls using classic visual styles.
Enable VisualStylesMode.Net11 for the modern controls.
Compare their PreferredHeight, actual height, text alignment, and surrounding vertical whitespace.
Repeat in an AutoSize TableLayoutPanel and at 100%, 150%, 225%, and 350% display scaling.
Actual behavior
The modern TextBox and ComboBox reserve additional vertical chrome/padding, making them noticeably taller than the classic controls. Auto-sized layout rows grow accordingly, which can cause visible layout changes in applications adopting the Net11 visual style.
Expected behavior
The modern controls should retain the classic single-line height contract, or remain close enough to it to avoid unnecessary vertical whitespace and layout expansion, while still preserving readable, unclipped text and the modern border treatment across supported DPI settings.
Tracking
PR #14887 contains the proposed implementation and test updates for this issue.
changed the title [-]Track vertical Padding behavior for modern TextBox and ComboBox after #14887[/-][+]TextBox and ComboBox are too tall in Net11 visual styles[/+]on Aug 25, 2026
Verified in the latest .NET 11 RC2 build + dlls built from the latest main branch of Winforms repo, it was fixed: now ComboBox, TextBox, MaskedTextBox, DomainUpDown and NumericUpDown have the same proper height:
Activity
[-]Track vertical Padding behavior for modern TextBox and ComboBox after #14887[/-][+]TextBox and ComboBox are too tall in Net11 visual styles[/+]Olina-Zhang commentedon Sep 10, 2026
Verified in the latest .NET 11 RC2 build + dlls built from the latest main branch of Winforms repo, it was fixed: now ComboBox, TextBox, MaskedTextBox, DomainUpDown and NumericUpDown have the same proper height:
Amy-Li03 commentedon Sep 24, 2026
Verified with .NET 11 Oct 2026 Update Validation test pass build: .NET 11.0.0-RC.2.26473.101, issue has been fixed.
