D
Dave
How do I show a context menu directly underneath a tool strip menu item?
I tried this, but a menu item is not a control so it will not build.
private void siteToolStripMenuItem_MouseDown(object sender, MouseEventArgs
e)
{
// contextMenu.Show((Control)siteToolStripMenuItem.Owner, e.X,
siteToolStripMenuItem.Height);
contextMenu.Show((Control)siteToolStripMenuItem, 0,
siteToolStripMenuItem.Height);
}
I also tried the "siteToolStripMenuItem.Owner" which does build and does
display my context menu, but I can't location the X position of the menu
item to properly have the context menu displayed underneath.
Anyone have any idea's?
Dave
I tried this, but a menu item is not a control so it will not build.
private void siteToolStripMenuItem_MouseDown(object sender, MouseEventArgs
e)
{
// contextMenu.Show((Control)siteToolStripMenuItem.Owner, e.X,
siteToolStripMenuItem.Height);
contextMenu.Show((Control)siteToolStripMenuItem, 0,
siteToolStripMenuItem.Height);
}
I also tried the "siteToolStripMenuItem.Owner" which does build and does
display my context menu, but I can't location the X position of the menu
item to properly have the context menu displayed underneath.
Anyone have any idea's?
Dave