Skip to content

ToolStripDropDownMenu throws when scrolling down past the last item #6650

Description

@Olina-Zhang
  • .NET Core Version:
    7.0.100-preview.2.22103.2

  • Have you experienced this same bug with .NET Framework?:
    Yes

Repro steps:

  1. Create a Winforms .Net Core application
  2. Add a toolStrip on the form designer
  3. Add a toolStripDropDownButton on the toolStrip
  4. Add several drop down items under toolStripDropDownButton
  5. In the Form.Designer.cs file, edit height of the this.toolStripDropDownButton1.DropDown.MaximumSize property in order to just display one or a part of one drop down item

Or using attached app:
WinFormsApp91.zip

  1. Build and run app, then click ToolStripScrollDownButton to display the last dropdown item

Actual behavior:
The ToolStripScrollDownButton is still enabled when displaying the last dropdown item, and in this case, an exception pops up when clicking that ToolStripScrollDownButton again
image

DropDown_MaximumSize

Expected behavior:
When go through the last dropdown item, the ToolStripScrollDownButton is disabled
image

Activity

  1. added
    help wanted
    on Feb 25, 2022
  2. added this to the .NET 7.0 milestone on Feb 25, 2022
  3. added
    help wanted
    and removed
    help wanted
    on May 5, 2022
  4. ghost removed this from the .NET 7.0 milestone on May 5, 2022
  5. ghost added this to the Up-for-grabs milestone on May 5, 2022
  6. added
    🚧 work in progress
    on Apr 23, 2026
  7. added a commit that references this issue on May 6, 2026
    cc1a805
  8. Zheng-Li01 commented on May 8, 2026

    @Zheng-Li01
    Member

    Verified the issue with latest .NET SDK 11.0.100.Preview.5.26256.117 build, the issue has been fixed when go through the last dropdown item, the ToolStripScrollDownButton is disabled as below screenshot.

    6650.mp4
  9. changed the title [-]The ToolStripScrollDownButton should be disabled when displaying and focused on the last dropdown item in order to avoid an exception popping up[/-] [+]ToolStripDropDownMenu throws when scrolling down past the last item[/+] on May 12, 2026
  10. removed
    help wanted
    on May 12, 2026
  11. KlausLoeffelmann commented on May 12, 2026

    @KlausLoeffelmann
    Member

    Reopened, because we need to take care of a regression here.

  12. Amy-Li03 commented on Jul 3, 2026

    @Amy-Li03
    Contributor

    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 the last drop-down item is displayed, clicking the ToolStripScrollDownButton again no longer throws an exception, but the ToolStripScrollDownButton is still enabled.
    Image

  13. Amy-Li03 commented on Aug 3, 2026

    @Amy-Li03
    Contributor

    Verified on .NET 11 Preview 7 test pass build: .NET 11.0.100-preview.7.26381.103, issue was fixed, test result is same as above.

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

Metadata

Metadata

Assignees

Labels

🚧 work in progressarea-controls-StripControls

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions