protected override bool HandleLButtonDblClick(ref Message m) { int x = Control.LowOrder((int)m.LParam.ToInt32()); int y = Control.HighOrder((int)m.LParam.ToInt32()); // Correct since we are in NC land. NCClientToNC(ref x, ref y); if (IconRectangleContains(x, y)) { icon_popup_menu.Hide(); form.Close(); return(true); } return(base.HandleLButtonDblClick(ref m)); }
private void SettingsToolStripMenuItem_Click(object sender, EventArgs e) { TrayContextMenuStrip.Hide(); ShowSettingsForm(); }