Skip to content

Utilize Mouse Wheel for scrolling in ToolStripDropDownMenu #13302

@toehead2001

Description

@toehead2001

.NET version

9.0

Did it work in .NET Framework?

No

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

No

Issue description

The mouse wheel can't be used to scroll these menus when they're overflowed.
You have to click the arrow buttons at the Top/Bottom. 🤮

To be clear, I'm talking about overflowed ToolStripDropDownMenu like this:
Image

In Paint.NET, these menus can get overflowed easily if a user installs a lot of plugins.

Image

cc: @rickbrew

Steps to reproduce

Add many ToolStripMenuItem to a DropDown.
For testing, I created a bunch of Menu items like this.

ToolStripMenuItem[] items = Enumerable
    .Range(0, 100)
    .Select(x => new ToolStripMenuItem(x.ToString()))
    .ToArray();

ToolStripMenuItem testMenu = new ToolStripMenuItem("Test");
testMenu.DropDownItems.AddRange(items);

MenuStrip menuStrip = new MenuStrip();
menuStrip.Items.AddRange(testMenu);

Controls.Add(menuStrip);

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions