Skip to content

ToolStripDropDownMenu throws when scrolling down past the last item #6650

@Olina-Zhang

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions