示例#1
0
 private void ColorPanel_MouseLeave(object sender, EventArgs e)
 {
     if (ColorPanel.Visible)
     {
         if (!ColorPanel.RectangleToScreen(ColorPanel.DisplayRectangle).Contains(MousePosition))
         {
             ColorPanel.Hide();
         }
     }
 }
示例#2
0
 private void ColorPanel_LostFocus(object sender, EventArgs e)
 {
     ColorPanel.Hide();
 }