Skip to content

ToolStripDropDown top scroll button cannot scroll to the visible item before a hidden item #14531

@Olina-Zhang

Description

@Olina-Zhang

.NET version

.NET 11 SDK build: 11.0.100-preview.5.26256.117

Did it work in .NET Framework?

No

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No, repro in previous .NET versions

Issue description

ToolStripDropDown scrolling behavior issue when hidden items exist in the dropdown.
Given four dropdown items:

  • A
  • B
  • C
  • D

with: B.Visible = false;

At runtime, the dropdown can scroll downward correctly, but upward scrolling using the top scroll button stops at C and cannot continue scrolling back to A, which is the visible item immediately before the hidden item B.

ScrollingIssue.mp4

Steps to reproduce

  1. Create a ToolStripDropDownButton (or similar dropdown control).
  2. Add four dropdown items:
  • A
  • B
  • C
  • D
  1. Set: B.Visible = false;
  2. Configure the dropdown height so scrolling buttons appear.
  3. Run the application.
  4. Scroll downward until lower items are visible.
  5. Use the top scroll button to scroll upward.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions