System.Windows.Forms.ButtonBase.OnLostFocus(System.EventArgs)

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

30 Examples 7

1. Example

Project: dp2
Source File: PlusButton.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            base.OnLostFocus(e);

            this.Active = false;
        }

2. Example

Project: fomm
Source File: SplitButton.cs
View license
protected override void OnLostFocus(EventArgs e)
    {
      if (!m_booShowSplit)
      {
        base.OnLostFocus(e);
        return;
      }
      if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled))
      {
        State = PushButtonState.Normal;
      }
    }

3. Example

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

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

4. Example

Project: ares
Source File: SplitButton.cs
View license
protected override void OnLostFocus(EventArgs e) {
            if (!showSplit) {
                base.OnLostFocus(e);
                return;
            }
            if (!State.Equals(PushButtonState.Pressed) && !State.Equals(PushButtonState.Disabled)) {
                State = PushButtonState.Normal;
            }
        }

5. Example

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

            base.OnLostFocus(e);
        }

6. Example

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

            base.OnLostFocus(e);
        }

7. Example

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

            base.OnLostFocus(e);
        }

8. Example

View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

9. Example

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

            base.OnLostFocus(e);
        }

10. Example

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

            base.OnLostFocus(e);
        }

11. Example

Project: ATF
Source File: SplitButton.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            if (!m_showSplit)
            {
                base.OnLostFocus(e);
                return;
            }
            if (!MState.Equals(PushButtonState.Pressed) && !MState.Equals(PushButtonState.Disabled))
            {
                MState = PushButtonState.Normal;
            }
        }

12. Example

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

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

13. Example

Project: Mist
Source File: MetroButton.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

14. Example

Project: Mist
Source File: MetroCheckBox.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

15. Example

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

            base.OnLostFocus(e);
        }

16. Example

Project: Mist
Source File: MetroRadioButton.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

17. Example

Project: Mist
Source File: MetroTile.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

18. Example

Project: Mist
Source File: MetroToggle.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

19. Example

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

            base.OnLostFocus(e);
        }

20. Example

Project: winauth
Source File: MetroCheckBox.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

21. Example

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

            base.OnLostFocus(e);
        }

22. Example

Project: winauth
Source File: MetroRadioButton.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

23. Example

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

            base.OnLostFocus(e);
        }

24. Example

Project: winauth
Source File: MetroToggle.cs
View license
protected override void OnLostFocus(EventArgs e)
        {
            isFocused = false;
            isHovered = false;
            isPressed = false;
            Invalidate();

            base.OnLostFocus(e);
        }

25. Example

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

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

26. Example

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

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

27. Example

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

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

28. Example

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

            _spacePressed = false;

            var location = Cursor.Position;

            if (!ClientRectangle.Contains(location))
                SetButtonState(DarkControlState.Normal);
            else
                SetButtonState(DarkControlState.Hover);
        }

29. Example

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

            _spacePressed = false;

            var location = Cursor.Position;

            if (!ClientRectangle.Contains(location))
                SetControlState(DarkControlState.Normal);
            else
                SetControlState(DarkControlState.Hover);
        }

30. Example

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

            _spacePressed = false;

            var location = Cursor.Position;

            if (!ClientRectangle.Contains(location))
                SetControlState(DarkControlState.Normal);
            else
                SetControlState(DarkControlState.Hover);
        }