Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8791981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:55:03+00:00 2026-06-13T22:55:03+00:00

I have some menus that contain many menuitems. Mouse wheel doesn’t scroll them. I

  • 0

I have some menus that contain many menuitems. Mouse wheel doesn’t scroll them. I have to use the keyboard arrows or click the arrows at top and bottom.
Is it possible to use the mouse wheel to scroll toolstrip menu items?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:55:04+00:00Added an answer on June 13, 2026 at 10:55 pm

    A working solution:

    1. Register for MouseWheel event of your form and DropDownClosed event of your root MenuStripItem (here, rootItem) in the Load event of the form

          this.MouseWheel += Form3_MouseWheel;
          rootItem.DropDownOpened += rootItem_DropDownOpened;
          rootItem.DropDownClosed += rootItem_DropDownClosed;
      
    2. Add the code for Keyboard class which simulate key presses

      public static class Keyboard
      {
          [DllImport("user32.dll")]
          static extern uint keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
      
      
          const byte VK_UP = 0x26; // Arrow Up key
          const byte VK_DOWN = 0x28; // Arrow Down key
      
          const int KEYEVENTF_EXTENDEDKEY = 0x0001; //Key down flag, the key is going to be pressed
          const int KEYEVENTF_KEYUP = 0x0002; //Key up flag, the key is going to be released
      
          public static void KeyDown()
          {
              keybd_event(VK_DOWN, 0, KEYEVENTF_EXTENDEDKEY, 0);
              keybd_event(VK_DOWN, 0, KEYEVENTF_KEYUP, 0);
          }
      
          public static void KeyUp()
          {
              keybd_event(VK_UP, 0, KEYEVENTF_EXTENDEDKEY, 0);
              keybd_event(VK_UP, 0, KEYEVENTF_KEYUP, 0);
          }
      }
      
    3. Add the code for DropDownOpened, DropDownClosed, MouseWheel events:

      bool IsMenuStripOpen  = false;
      
      void rootItem_DropDownOpened(object sender, EventArgs e)
      {
          IsMenuStripOpen = true;
      }
      
      
      void rootItem_DropDownClosed(object sender, EventArgs e)
      {
          IsMenuStripOpen = false;
      }
      
      void Form3_MouseWheel(object sender, MouseEventArgs e)
      {
          if (IsMenuStripOpen)
          {
              if (e.Delta > 0)
              {
                  Keyboard.KeyUp();
              }
              else
              {
                  Keyboard.KeyDown();
              }
          }
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that first selects an option value in a dropdown menu
I have a Servlet called Menu that generates some html and a dynamic menu,
I have a jquery accordion style menu that I'd like to add some shortcut
I'm having some trouble figuring this out. I have an unordered list menu that
I have noticied that in some android menues, a list view is shown that
How to load/render a usercontrol using jquery? I have some menus on header of
I have some mega menu style menus on a site I maintain. These are
I have some pages that have content that is relevant to both logged in
So, for some hours now, I have been trying to do something that I
suppose we have a menu that two of the items contain a submenu ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.