Skip to content

VS2026 .Net10 WinForms - Missing ToolStripStatusLabel on StatusStrip when using TooStripStatusLabel.Spring=true #14062

Closed

Description

@paulvdk-svg

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.

Source code and screen shots attached.

TestFormsDotNet9_GOOD.zip

TestFormsDotNet10_BAD.zip

Expected Behavior (.net 9)

Image

Actual Behavior (.net 10)

Image

** Suggested Labels:** bug, .net 10 regression

Activity

  1. Zheng-Li01 commented on Nov 19, 2025

    @Zheng-Li01
    Member

    Dup to the known issue #13717

  2. paulvdk-svg commented on Nov 19, 2025

    @paulvdk-svg
    Author

    This is not a dup of #13717:

    1. This issue occurs at all display scaling settings, including 100%.
    2. There is no SizingGrip control in this issue. The controls inside the StatusStrip are ToolStripStatusLabels.

    Consequently, there is no known workaround for the problem, other than setting Spring = False, but that gives the wrong layout.

  3. self-assigned this
    on Nov 20, 2025
  4. added
    💥 regression-preview
    💥 regression-release
    and removed
    💥 regression-preview
    on Nov 26, 2025
  5. LeafShi1 commented on Nov 26, 2025

    @LeafShi1
    Member

    This issue introduced by this PR #13620

  6. LeafShi1 commented on Dec 1, 2025

    @LeafShi1
    Member

    Two repair approaches:

    1. 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.
    2. 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.

  7. KlausLoeffelmann commented on Dec 3, 2025

    @KlausLoeffelmann
    Member

    I would opt for 1.
    Let's see how this goes in testing.

    Could you also take vertical StatusStrips into account?

    Thanks!

  8. added a commit that references this issue on Dec 9, 2025
    5d64bba
  9. added a commit that references this issue on Dec 9, 2025
    07e87c6
  10. Amy-Li03 commented on Dec 18, 2025

    @Amy-Li03
    Contributor

    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.

    Image
  11. added this to the .NET 11 milestone on Dec 18, 2025
  12. Olina-Zhang commented on Feb 5, 2026

    @Olina-Zhang
    Member

    Verified it with .NET SDK 11.0 Preview1 test pass build, it has been fixed with the same testing result as above.

  13. locked and limited conversation to collaborators on Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions