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
VS2026 .Net10 WinForms - Missing ToolStripStatusLabel on StatusStrip when using TooStripStatusLabel.Spring=true #14062
This simple forms app contains a single StatusStrip with two ToolStripStatusLabel objects.
The labels are intended to appear left- and right-aligned respectively. The first ToolStripStatusLabel has Spring = True to get the desired layout. This works as expected with .net 9, but the right label is missing with .net 10.
Override StatusStrip.DisplayRectangle When SizingGrip == true:
Compute DPI-scaled grip width via ScaleHelper.ScaleToDpi(GripWidth, DeviceDpi).
If RightToLeft == Yes, subtract width from the left and shift rect.X to the right by the grip width.
If RightToLeft == No, subtract width from the right side.
Modify the collision logic of StatusItem and SizingGrip in SetDisplayedItems. Hide the intersection only when the intersection ratio exceeds a certain threshold, otherwise, allow slight overlap.
Verified with .NET SDK 11.0.100-alpha.1.25617.103 on 150% HDPI screen, issue have been fixed that ToolStripStatusLabel on StatusStrip displayed correctly when using TooStripStatusLabel.Spring=true.
Activity
Zheng-Li01 commentedon Nov 19, 2025
Dup to the known issue #13717
paulvdk-svg commentedon Nov 19, 2025
This is not a dup of #13717:
Consequently, there is no known workaround for the problem, other than setting Spring = False, but that gives the wrong layout.
LeafShi1 commentedon Nov 26, 2025
This issue introduced by this PR #13620
LeafShi1 commentedon Dec 1, 2025
Two repair approaches:
Override
StatusStrip.DisplayRectangleWhenSizingGrip == true:ScaleHelper.ScaleToDpi(GripWidth, DeviceDpi).RightToLeft == Yes, subtract width from the left and shift rect.X to the right by the grip width.RightToLeft == No, subtract width from the right side.Modify the collision logic of
StatusItemandSizingGripinSetDisplayedItems. Hide the intersection only when the intersection ratio exceeds a certain threshold, otherwise, allow slight overlap.KlausLoeffelmann commentedon Dec 3, 2025
I would opt for 1.
Let's see how this goes in testing.
Could you also take vertical StatusStrips into account?
Thanks!
Fix 14062: Refactor StatusStrip DefaultPadding calculation and adjust…
Fix 14062: Refactor StatusStrip DefaultPadding calculation and adjust…
Amy-Li03 commentedon Dec 18, 2025
Verified with .NET SDK 11.0.100-alpha.1.25617.103 on 150% HDPI screen, issue have been fixed that ToolStripStatusLabel on StatusStrip displayed correctly when using TooStripStatusLabel.Spring=true.
Olina-Zhang commentedon Feb 5, 2026
Verified it with .NET SDK 11.0 Preview1 test pass build, it has been fixed with the same testing result as above.