开发者

How to react to Mouse Scroll Wheel on ToolStripDropDownButton's DropDownMenu?

开发者 https://www.devze.com 2023-03-09 14:31 出处:网络
I have a normal WinForms ToolStripDropDownButton\'s drop down menu that is populated dynamically.In some cases the nu开发者_开发知识库mber of items on the drop down extend beyond the screen dimensions

I have a normal WinForms ToolStripDropDownButton's drop down menu that is populated dynamically. In some cases the nu开发者_开发知识库mber of items on the drop down extend beyond the screen dimensions and the overflow up/down scroll buttons appear.

Instead of the user clicking on the overflow buttons to bring the rest of the menu items into view, is it possible have the same behavior with the mouse wheel?

Thanks.


Those controls don't handle the Mouse Wheel inherently, so there is no way to make it happen without busting things open with Reflection - which will have it's own problems.

0

精彩评论

暂无评论...
验证码 换一张
取 消