System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)

Here are the examples of the csharp api class System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

45 Examples 7

1. Example

View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            base.OnMouseUp(mevent);

            _animationManager.StartNewAnimation(AnimationDirection.In, mevent.Location);
        }

2. Example

View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            base.OnMouseUp(mevent);

            animationManager.StartNewAnimation(AnimationDirection.In, mevent.Location);
        }

3. Example

View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            base.OnMouseUp(mevent);

            animationManager.StartNewAnimation(AnimationDirection.In, mevent.Location);
        }

4. Example

View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            base.OnMouseUp(mevent);

            _animationManager.StartNewAnimation(AnimationDirection.In, mevent.Location);
        }

5. Example

Project: lphant
Source File: Button.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
		{
			//this.Image=this.ImageList.Images[0];
			this.ImageIndex=1;
			base.OnMouseUp(e);
		}

6. Example

Project: clrprofiler
Source File: DiffTreeListView.cs
View license
override protected void OnMouseUp(MouseEventArgs e)
		{
			pressed = false;
			base.OnMouseUp(e);
		}

7. Example

Project: clrprofiler
Source File: TreeListView.cs
View license
override protected void OnMouseUp(MouseEventArgs e)
		{
			pressed = false;
			base.OnMouseUp(e);
		}

8. Example

Project: Repetier-Host
Source File: ArrowButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            _clicked = false;
            base.OnMouseUp(mevent);
        }

9. Example

Project: BiliRanking
Source File: MaterialRaisedButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            base.OnMouseUp(mevent);

            animationManager.StartNewAnimation(AnimationDirection.In, mevent.Location);
        }

10. Example

Project: RNGReporter
Source File: GlassButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            if (_isMouseDown)
            {
                _isMouseDown = false;
                Invalidate();
            }
            base.OnMouseUp(e);
        }

11. Example

Project: dockpanelsuite
Source File: InertButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            base.OnMouseUp(mevent);

            if (mevent.Button != MouseButtons.Left)
                return;

            if (m_mouseOver == true || m_mouseCapture == true)
            {
                m_mouseOver = false;
                m_mouseCapture = false;

                // Redraw to show button state
                Invalidate();
            }

            if (RepeatClick)
                ClickStatus = RepeatClickStatus.Stopped;
        }

12. Example

View license
protected override void OnMouseUp(MouseEventArgs mevent) {
            base.OnMouseUp(mevent);
            _mouseState = MouseState.None;
            Invalidate();
        }

13. Example

Project: EDDiscovery
Source File: ButtonExt.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            if (_DrawState == DrawState.Click)
                SetDrawState(DrawState.Hover);

            base.OnMouseUp(mevent);
        }

14. Example

Project: ArnoldSimulator
Source File: InertButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
		{
			base.OnMouseUp(e);

			if (e.Button != MouseButtons.Left)
				return;

			if (m_mouseOver == true || m_mouseCapture == true)
			{
				m_mouseOver = false;
				m_mouseCapture = false;

				// Redraw to show button state
				Invalidate();
			}

			if (RepeatClick)
				ClickStatus = RepeatClickStatus.Stopped;
		}

15. Example

Project: mRemoteNG
Source File: CommandButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            m_State = eButtonState.MouseOver;
            Invalidate();
            base.OnMouseUp(e);
        }

16. Example

Project: ScpToolkit
Source File: ScpButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            if (Enabled) m_State = State.Hover;

            Invalidate();
            base.OnMouseUp(e);
        }

17. Example

Project: GoBot
Source File: DarkTheme.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
    {
        State = Helpers.MouseState.Over;
        Invalidate();
        base.OnMouseUp(e);
    }

18. Example

Project: winforms-modernui
Source File: MetroButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

19. Example

Project: winforms-modernui
Source File: MetroLink.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

20. Example

Project: winforms-modernui
Source File: MetroTile.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

21. Example

Project: winforms-modernui
Source File: MetroForm.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
            {
                isPressed = false;
                Invalidate();

                base.OnMouseUp(e);
            }

22. Example

Project: SystemEx
Source File: EmulateCommandLink.cs
View license
protected override void OnMouseUp ( System.Windows.Forms.MouseEventArgs e )
        {
            buttonState = ButtonState.MouseOver;
            this.Invalidate ( );
            base.OnMouseUp ( e );
        }

23. Example

Project: DarkUI
Source File: DarkButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            base.OnMouseUp(e);

            if (_spacePressed)
                return;

            SetButtonState(DarkControlState.Normal);
        }

24. Example

Project: ATF
Source File: PropertyEditingControl.cs
View license
protected override void OnMouseUp(MouseEventArgs arg)
            {
                base.OnMouseUp(arg);
                if (arg.Button == MouseButtons.Left)
                {
                    m_pushed = false;
                    Invalidate();
                }
            }

25. Example

Project: ynoteclassic
Source File: InertButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            base.OnMouseUp(e);

            if (e.Button != MouseButtons.Left)
                return;

            if (m_mouseOver || m_mouseCapture)
            {
                m_mouseOver = false;
                m_mouseCapture = false;

                // Redraw to show button state
                Invalidate();
            }

            if (RepeatClick)
                ClickStatus = RepeatClickStatus.Stopped;
        }

26. Example

Project: Mist
Source File: MetroButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

27. Example

Project: Mist
Source File: MetroLink.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

28. Example

Project: Mist
Source File: MetroTile.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

29. Example

Project: Mist
Source File: MetroForm.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
            {
                isPressed = false;
                Invalidate();

                base.OnMouseUp(e);
            }

30. Example

Project: winauth
Source File: MetroButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

31. Example

Project: winauth
Source File: MetroLink.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

32. Example

Project: winauth
Source File: MetroTile.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            isPressed = false;
            Invalidate();

            base.OnMouseUp(e);
        }

33. Example

Project: winauth
Source File: MetroForm.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
            {
                isPressed = false;
                Invalidate();

                base.OnMouseUp(e);
            }

34. Example

Project: SquareOne
Source File: InertButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            base.OnMouseUp(e);

            if (e.Button != MouseButtons.Left)
                return;

            if (m_mouseOver == true || m_mouseCapture == true)
            {
                m_mouseOver = false;
                m_mouseCapture = false;

                // Redraw to show button state
                Invalidate();
            }

            if (RepeatClick)
                ClickStatus = RepeatClickStatus.Stopped;
        }

35. Example

Project: SharpBoot
Source File: ThreeStateButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            base.OnMouseUp(mevent);

            isDown = false;

            SetBackImage();
        }

36. Example

Project: Cropper
Source File: DropDownButton.cs
View license
protected override void OnMouseUp(MouseEventArgs arg)
        {
            base.OnMouseUp(arg);
            if (arg.Button != MouseButtons.Left) return;

            pushed = false;
            Invalidate();
        }

37. Example

Project: sharpshell
Source File: SplitButton.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            if (!m_showSplit)
            {
                base.OnMouseUp(e);
                return;
            }

            if (ContextMenuStrip == null || !ContextMenuStrip.Visible && e.Button == MouseButtons.Left)
            {
                SetButtonDrawState();

                if (Bounds.Contains(Parent.PointToClient(Cursor.Position)) &&
                    !m_dropDownRectangle.Contains(e.Location))
                {
                    PerformClick();
                }
            }
        }

38. Example

Project: fomm
Source File: SplitButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
    {
      if (!m_booShowSplit)
      {
        base.OnMouseUp(mevent);
        return;
      }

      if (ContextMenuStrip == null || !ContextMenuStrip.Visible)
      {
        SetButtonDrawState();
        if (Bounds.Contains(Parent.PointToClient(Cursor.Position)) && !m_rctDropDownRectangle.Contains(mevent.Location))
        {
          OnClick(new EventArgs());
        }
      }
    }

39. Example

Project: gitextensions
Source File: SplitButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            if (!showSplit)
            {
                base.OnMouseUp(mevent);
                return;
            }

            // if the right button was released inside the button
            if (mevent.Button == MouseButtons.Right && ClientRectangle.Contains(mevent.Location) && !isSplitMenuVisible)
            {
                ShowContextMenuStrip();
            }
            else if (m_SplitMenuStrip == null && m_SplitMenu == null || !isSplitMenuVisible)
            {
                SetButtonDrawState();

                if (ClientRectangle.Contains(mevent.Location) && !dropDownRectangle.Contains(mevent.Location))
                {
                    OnClick(new EventArgs());
                }
            }
        }

40. Example

Project: ares
Source File: SplitButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent) {
            if (!showSplit) {
                base.OnMouseUp(mevent);
                return;
            }

            if (ContextMenuStrip == null || !ContextMenuStrip.Visible) {
                SetButtonDrawState();
                if (Bounds.Contains(Parent.PointToClient(Cursor.Position)) && !dropDownRectangle.Contains(mevent.Location)) {
                    OnClick(new EventArgs());
                }
            }
        }

41. Example

Project: kit-kat
Source File: Theme.cs
View license
protected override void OnMouseUp(MouseEventArgs e)
        {
            base.OnMouseUp(e);
            if (base.Enabled == true)
            {
                if (ReferenceEquals(Tag, "Alert"))
                {
                    BackColor = Color.FromArgb(230, Settings.Default.AlertColor);
                }
                else if (ReferenceEquals(Tag, "BrightBlue"))
                {
                    BackColor = Color.FromArgb(230, ColorFromHex("#b6daf8"));
                }
                else
                {
                    BackColor = Color.FromArgb(230, Settings.Default.HighlightColor);
                }
            }
        }

42. Example

Project: ATF
Source File: SplitButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            if (!m_showSplit)
            {
                base.OnMouseUp(mevent);
                return;
            }

            if (ContextMenuStrip == null || !ContextMenuStrip.Visible)
            {
                SetButtonDrawState();
                if (Bounds.Contains(Parent.PointToClient(Cursor.Position)) &&
                    !m_dropDownRectangle.Contains(mevent.Location))
                {
                    OnClick(new EventArgs());
                }
            }
        }

43. Example

Project: bdhero
Source File: SplitButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            if (!showSplit)
            {
                base.OnMouseUp(mevent);
                return;
            }

            // if the right button was released inside the button
            if (mevent.Button == MouseButtons.Right && ClientRectangle.Contains(mevent.Location) && !isSplitMenuVisible)
            {
                ShowContextMenuStrip();
            }
            else if (m_SplitMenuStrip == null && m_SplitMenu == null || !isSplitMenuVisible)
            {
                SetButtonDrawState();

                if (ClientRectangle.Contains(mevent.Location) && !dropDownRectangle.Contains(mevent.Location))
                {
                    OnClick(new EventArgs());
                }
            }
        }

44. Example

Project: SharpBoot
Source File: SplitButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
        {
            if (!showSplit)
            {
                base.OnMouseUp(mevent);
                return;
            }

            // if the right button was released inside the button
            if (mevent.Button == MouseButtons.Right && ClientRectangle.Contains(mevent.Location) && !isSplitMenuVisible)
            {
                ShowContextMenuStrip();
            }
            else if (m_SplitMenuStrip == null && m_SplitMenu == null || !isSplitMenuVisible)
            {
                SetButtonDrawState();

                if (ClientRectangle.Contains(mevent.Location) && !dropDownRectangle.Contains(mevent.Location))
                {
                    OnClick(new EventArgs());
                }
            }
        }

45. Example

Project: chummer5a
Source File: SplitButton.cs
View license
protected override void OnMouseUp(MouseEventArgs mevent)
    {
        if (!_showSplit)
        {
            base.OnMouseUp(mevent);
            return;
        }

        // if the right button was released inside the button
        if (mevent.Button == MouseButtons.Right && ClientRectangle.Contains(mevent.Location) && !_isSplitMenuVisible)
        {
            ShowContextMenuStrip();
        }
        else if (m_SplitMenuStrip == null && m_SplitMenu == null || !_isSplitMenuVisible)
        {
            SetButtonDrawState();

            if (ClientRectangle.Contains(mevent.Location) && !_dropDownRectangle.Contains(mevent.Location))
            {
                OnClick(new EventArgs());
            }
        }
    }