I have a control that creates a popup menu on right click, and I need the best way to close it on left click. Besides handling the mouseDown event of everycontrol in my application, what is the best way to close the popup menu?
Like a global mouse click event….
private void lbKeywords_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
listBoxMenu.ShowPopup(Cursor.Position);
}
}
As an answer: try asking DevExpress or looking at their support pages – i.e. I found this after a quick search: devexpress.com/Support/Center/p/CQ14210.aspx