ContextMenuStrip and mouse wheel

I have a ContextMenuStrip with many elements.

How do I handle the mouse wheel to scroll through items?

I searched the net but found nothing useful.

Or how to get the first / last displayed / visible item from the context menu?

+2


a source to share


2 answers


Since this is an old question you probably won't need this but just in case and for future reference. You can simulate the up and down keys to scroll it, its far from ideal , but it has to write its own ContextMenuStrip to handle the scroll wheel. Mouse scroll toolbar menu items



+3


a source


Adding a lot of items to the CMS to scroll completely defeats the purpose of the context menu. Don't create a user interface that is difficult to use and requires the user to scan several dozen items. Your users will dislike your program with passion and will find out where you live.



CMS supports submenus. Classify your menu items.

0


a source







All Articles