On Windows Forms β if there are tooltips and dropdown elements in the MenuStrip drop-down elements, the tooltip will have a 50% chance of being lower than ToolStripItems.
What is the workaround?
For playback, you can create a MenuStrip in Visual Studio or simply add the following code to the form and then try to hover over the menu items to get a hint:
MenuStrip menu = new MenuStrip();
this.Controls.Add(menu);
ToolStripMenuItem fileItem = new ToolStripMenuItem("File");
menu.Items.Add(fileItem);
for (int i = 0; i < 10; i++)
{
ToolStripMenuItem item = new ToolStripMenuItem("item");
item.ToolTipText = "item tooltip";
item.DropDownItems.Add("sub item");
fileItem.DropDownItems.Add(item);
}
I am using .NET 3.5
source
share