The alternative method I found works a little better:
private void notifyIcon1_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { System.Reflection.MethodInfo mi = typeof(NotifyIcon).GetMethod("ShowContextMenu", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); mi.Invoke(notifyIcon1, null); } }
rotard
source share