private void TrayNotifyIcon_Click(object sender, EventArgs e) { var mi = TrayNotifyIcon.GetType().GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic); mi.Invoke(TrayNotifyIcon, null); }
private void TrayNotifyIcon_Click(object sender, EventArgs e) { var mi = TrayNotifyIcon.GetType().GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic); mi.Invoke(TrayNotifyIcon, null); }