I have used menu tool strip in my form! I want menu to be dropped down when my cursor hovers on it! How to do this?
Asked
Active
Viewed 2,368 times
-1
-
Why would you want this? It violates all of the standard platform UI conventions. No other Windows application works this way. Why should yours be different? That will just confuse your users. – Cody Gray - on strike Apr 15 '12 at 11:02
1 Answers
5
You can try using the MouseHover
event of the menu item:
public Form1() {
InitializeComponent();
fileToolStripMenuItem.MouseHover += fileToolStripMenuItem_MouseHover;
}
private void fileToolStripMenuItem_MouseHover(object sender, EventArgs e) {
fileToolStripMenuItem.ShowDropDown();
}
or the lambda version:
public Form1() {
InitializeComponent();
fileToolStripMenuItem.MouseHover += (s, e) => fileToolStripMenuItem.ShowDropDown();
}

LarsTech
- 80,625
- 14
- 153
- 225
-
-
1Upvoting this under duress. It's the correct solution to the wrong problem. – Cody Gray - on strike Apr 16 '12 at 00:56