コード例 #1
0
 protected override void OnMouseUp(MouseEventArgs e)
 {
     base.OnMouseUp(e);
     State = MouseStateForever.Over;
     TB.Focus();
     Invalidate();
 }
コード例 #2
0
 protected override void OnMouseEnter(EventArgs e)
 {
     base.OnMouseEnter(e);
     State = MouseStateForever.Over;
     if (FocusOnHover)
     {
         TB.Focus();
     }
     Invalidate();
 }
コード例 #3
0
 protected override void OnMouseLeave(EventArgs e)
 {
     base.OnMouseLeave(e);
     State = MouseStateForever.None;
     Invalidate();
 }
コード例 #4
0
 protected override void OnMouseEnter(EventArgs e)
 {
     base.OnMouseEnter(e);
     State = MouseStateForever.Over;
     Invalidate();
 }
コード例 #5
0
 protected override void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     State = MouseStateForever.Down;
     Invalidate();
 }