1         public void MourseLeave()
 2         {
 3             bool b = this.RectangleToScreen(this.ClientRectangle).Contains(MousePosition);
 4 
 5             //Point SQButtonPoint = this.PointToScreen(this.ClientRectangle.Location);
 6             //Point MoursePoint = Control.MousePosition;
 7             //bool MourseSQButton = SQButtonPoint.X + this.Width >= MoursePoint.X && MoursePoint.X >= SQButtonPoint.X && MoursePoint.Y >= SQButtonPoint.Y && SQButtonPoint.Y + this.Height >= MoursePoint.Y;
 8             if (!b)
 9             {
10                 this.BackColor = _NormalColor;
11             }
12         }
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2022-01-01
  • 2022-01-01
  • 2021-05-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-06-17
  • 2022-12-23
相关资源
相似解决方案