Using my notify icon my function for mouse click and double click event are entirely different Mouse click event - will open a form Doouble click event - will open a folder
Mouse click event do its job but when fire the double click event, it still trigger the mouse click event by which my form still show on double click.
Actual result on double click: opens the folder and opens the form Expected result on double click: opens the folder
I already close the form on click but still show for a split second before hiding since the mouse click event is fired first before double click event.
private void notifyIcon_MouseDoubleClick(object sender, MouseEventArgs e)
{
//opens folder function
//close widget on double click
if (widgetForm != null)
widgetForm.Close();
}
MouseClick
event only in combination with the Control.ModifierKeys. Open the folderif (ModifierKeys == Keys.Control)
, otherwise show the form. – dr.null