System.Windows.Forms.Button.OnMouseLeave(System.EventArgs)

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

41 Examples 7

1. Example

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

2. Example

Project: Nexus-Mod-Manager
Source File: DetailsButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
		{
			ImageIndex -= ImageIndex % 2;
			base.OnMouseLeave(e);
		}

3. Example

View license
protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);
            mouseOver = false;
        }

4. Example

View license
protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);
            mouseOver = false;
        }

5. Example

Project: Cropper
Source File: DropDownButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);
            hover = false;
        }

6. Example

Project: dockpanelsuite
Source File: InertButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            // Update state to reflect mouse not over the button area
            if (m_mouseOver)
            {
                m_mouseOver = false;

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

            base.OnMouseLeave(e);
        }

7. Example

Project: Eddie
Source File: Button.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);

			if (m_hover == true)
			{
				m_hover = false;
				Invalidate();
			}            
        }

8. Example

View license
protected override void OnMouseLeave(EventArgs e) {
            base.OnMouseLeave(e);
            _mouseState = MouseState.Leave;
            Invalidate();
        }

9. Example

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


            if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled))
            {
                if (Focused || IsAcceptButton)
                    State = PushButtonState.Default;
                else
                    State = PushButtonState.Normal;
            }
        }

10. Example

Project: EDDiscovery
Source File: ButtonExt.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            SetDrawState(DrawState.Normal);

            base.OnMouseLeave(e);
        }

11. Example

Project: fomm
Source File: SplitButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
    {
      if (!m_booShowSplit)
      {
        base.OnMouseLeave(e);
        return;
      }

      if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled))
      {
        State = Focused ? PushButtonState.Default : PushButtonState.Normal;
      }
    }

12. Example

Project: gitextensions
Source File: SplitButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            if (!showSplit)
            {
                base.OnMouseLeave(e);
                return;
            }

            isMouseEntered = false;

            if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled))
            {
                State = Focused ? PushButtonState.Default : PushButtonState.Normal;
            }
        }

13. Example

Project: ArnoldSimulator
Source File: InertButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
		{
			// Update state to reflect mouse not over the button area
			if (m_mouseOver)
			{
				m_mouseOver = false;

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

			base.OnMouseLeave(e);
		}

14. Example

Project: ares
Source File: SplitButton.cs
View license
protected override void OnMouseLeave(EventArgs e) {
            if (!showSplit) {
                base.OnMouseLeave(e);
                return;
            }

            if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled)) {
                if (Focused) {
                    State = PushButtonState.Default;
                }
                else {
                    State = PushButtonState.Normal;
                }
            }
        }

15. Example

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

16. Example

Project: ScpToolkit
Source File: ScpButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            m_State = State.Normal;

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

17. Example

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

18. Example

Project: winforms-modernui
Source File: MetroButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            isHovered = false;
            Invalidate();

            base.OnMouseLeave(e);
        }

19. Example

Project: winforms-modernui
Source File: MetroLink.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            isHovered = false;
            Invalidate();

            base.OnMouseLeave(e);
        }

20. Example

Project: winforms-modernui
Source File: MetroTile.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            isHovered = false;
            Invalidate();

            base.OnMouseLeave(e);
        }

21. Example

Project: winforms-modernui
Source File: MetroForm.cs
View license
protected override void OnMouseLeave(EventArgs e)
            {
                isHovered = false;
                Invalidate();

                base.OnMouseLeave(e);
            }

22. Example

Project: SystemEx
Source File: EmulateCommandLink.cs
View license
protected override void OnMouseLeave ( System.EventArgs e )
        {
            buttonState = ButtonState.Normal;
            this.Invalidate ( );
            base.OnMouseLeave ( e );
        }

23. Example

Project: Repetier-Host
Source File: ArrowButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            this.Cursor = Cursors.Arrow;
            hoverWidth = 0;
            currentValue = "";
            base.OnMouseLeave(e);
            if (arrowValueChanged != null)
                arrowValueChanged(this, currentValue);
        }

24. Example

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

            if (_spacePressed)
                return;

            SetButtonState(DarkControlState.Normal);
        }

25. Example

Project: ATF
Source File: SplitButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            if (!m_showSplit)
            {
                base.OnMouseLeave(e);
                return;
            }

            if (!MState.Equals(PushButtonState.Pressed) && !MState.Equals(PushButtonState.Disabled))
            {
                if (Focused)
                {
                    MState = PushButtonState.Default;
                }
                else
                {
                    MState = PushButtonState.Normal;
                }
            }
        }

26. Example

Project: ynoteclassic
Source File: InertButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            // Update state to reflect mouse not over the button area
            if (m_mouseOver)
            {
                m_mouseOver = false;

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

            base.OnMouseLeave(e);
        }

27. Example

Project: bdhero
Source File: SplitButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            if (!showSplit)
            {
                base.OnMouseLeave(e);
                return;
            }

            isMouseEntered = false;

            if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled))
            {
                State = Focused ? PushButtonState.Default : PushButtonState.Normal;
            }
        }

28. Example

Project: Mist
Source File: MetroButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            //This will check if control got the focus
            //If not thats the only it will remove the focus color
            if (!isFocused)
            {
                isHovered = false;
            }

            Invalidate();

            base.OnMouseLeave(e);
        }

29. Example

Project: Mist
Source File: MetroLink.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            isHovered = false;
            Invalidate();

            base.OnMouseLeave(e);
        }

30. Example

Project: Mist
Source File: MetroTile.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            //This will check if control got the focus
            //If not thats the only it will remove the focus color
            if (!isFocused)
            {
                isHovered = false;
            }
            Invalidate();

            base.OnMouseLeave(e);
        }

31. Example

Project: Mist
Source File: MetroForm.cs
View license
protected override void OnMouseLeave(EventArgs e)
            {
                isHovered = false;
                Invalidate();

                base.OnMouseLeave(e);
            }

32. Example

Project: winauth
Source File: MetroButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            isHovered = false;
            Invalidate();

            base.OnMouseLeave(e);
        }

33. Example

Project: winauth
Source File: MetroLink.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            isHovered = false;
            Invalidate();

            base.OnMouseLeave(e);
        }

34. Example

Project: winauth
Source File: MetroTile.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            isHovered = false;
            Invalidate();

            base.OnMouseLeave(e);
        }

35. Example

Project: winauth
Source File: MetroForm.cs
View license
protected override void OnMouseLeave(EventArgs e)
            {
                isHovered = false;
                Invalidate();

                base.OnMouseLeave(e);
            }

36. Example

Project: SquareOne
Source File: InertButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            // Update state to reflect mouse not over the button area
            if (m_mouseOver)
            {
                m_mouseOver = false;

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

            base.OnMouseLeave(e);
        }

37. Example

Project: SharpBoot
Source File: SplitButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            if (!showSplit)
            {
                base.OnMouseLeave(e);
                return;
            }

            isMouseEntered = false;

            if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled))
            {
                State = Focused ? PushButtonState.Default : PushButtonState.Normal;
            }
        }

38. Example

Project: SharpBoot
Source File: ThreeStateButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);

            isHover = false;

            SetBackImage();
        }

39. Example

Project: chummer5a
Source File: SplitButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
    {
        if (!_showSplit)
        {
            base.OnMouseLeave(e);
            return;
        }

        isMouseEntered = false;

        if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled))
        {
            State = Focused ? PushButtonState.Default : PushButtonState.Normal;
        }
    }

40. Example

Project: RNGReporter
Source File: GlassButton.cs
View license
protected override void OnMouseLeave(EventArgs e)
        {
            _isHovered = false;
            if (!(FadeOnFocus && _isFocusedByKey)) FadeOut();
            Invalidate();
            base.OnMouseLeave(e);
        }

41. Example

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