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 3981448
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:24:40+00:00 2026-05-20T05:24:40+00:00

I have a winforms ContextMenuStrip that has ToolTipText set for all of it’s ToolStripMenuItem’s.

  • 0

I have a winforms ContextMenuStrip that has ToolTipText set for all of it’s ToolStripMenuItem’s.

One of these menu items, “Insert Action”, has an associated ToolStripDropDown sub-menu. When the mouse is moved to Insert Action, the drop down menu is automatically displayed and the tooltip associated with Insert Action is displayed but pushed to the background behind both the ContextMenuStrip and the dropdown.

See here for a picture of the problem: http://www.screencast.com/t/GZkeBNcU

I have tried programatically re-selecting Insert Action after the sub-menu is opened, but the tooltip will not redisplay on top.

Any ideas?

Alternatively is there a way to only display Insert Action’s sub-menu when it is clicked (as opposed to automatically when the mouse is moved over it)? I would think there should be a setting for this, but haven’t been able to find it.

Thanks for your help.

  • 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-05-20T05:24:41+00:00Added an answer on May 20, 2026 at 5:24 am

    Ok, this isn’t terribly elegant so bear with me.

    It seems as though the ToolTipText is being drawn on top initially, but once the next ToolStripMenuItems load(The ones brought about by “Insert Action” in your case), both sets of MenuStrips find their way above the ToolTipText. So, my motivation was to force the ToolTipText to appear AFTER the new MenuStrip loads.

    So, first I added a DropDownOpened handler to myToolStripMenuItem which would be whatever you named your “Insert Action…” MenuItem.

    Then, I added the following code

    private void myToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
    {
        myToolStripMenuItem.Visible = false;
        myToolStripMenuItem.Visible = true;
        myToolStripMenuItem.ToolTipText = "Tooltip info that you want to see!";
    }
    

    What this does is waits for the sub-menu to load, toggles the visibility of myToolStripMenuItem (which is the ugly part in all this), and resets the ToolTipText, forcing it to display after everything is loaded and also on top of everything.

    However, leaving it like this would result in some flashing of text if you were to attempt to hover and leave twice or more. Give it a shot with just this code and you will see what I mean. So, you have to reset the ToolTipText to a blank string. I did this when the same MenuItem’s DropDownClosed event fires.

    private void myToolStripMenuItem_DropDownClosed(object sender, EventArgs e)
    {
        myToolStripMenuItem.ToolTipText = "";
    }
    

    Now, the ToolTipText appears exactly when and where we want it to appear without ever flickering.

    NOTE: This method will result in the ToolTipText taking a little bit longer to show up than normal. This is, of course, because the code waits for the dropdown menu to load. Also, toggling myToolStripMenuItem.Visible will occasionally cause a flicker in the menu. However, I feel that is significantly better than showing a ToolTipText that you can’t quite see.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WinForms menuitem and I need that on menu click the new
I have a winforms application that normally is at about 2-4% CPU. We are
We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to
I have C# winforms application that needs to start an external exe from time
I have a winforms application that presently ships with a chm file for context-sensitive
I have a WinForms TreeView with one main node and several sub-nodes. How can
I have a Winforms app that was originally created in vs 2005 and that
I have WinForms application. My Form derived class has UserControl derived class. I simply
I have a have Winforms client that uses Web services on a IIS7 (W2008)
WinForms have those three boxes in the upper right hand corner that minimize, maximize,

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.