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

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

29 Examples 7

1. Example

Project: gitextensions
Source File: SplitButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            State = Enabled ? PushButtonState.Normal : PushButtonState.Disabled;

            base.OnEnabledChanged(e);
        }

2. Example

Project: My-FyiReporting
Source File: SimpleToggle.cs
View license
protected override void OnEnabledChanged(EventArgs e)
		{
			base.OnEnabledChanged(e);		// CheckBox OnEnabled method
			if (this.Enabled)
			{
				this.ForeColor = Color.Black;
				this.BackColor = this.Checked? this.DownColor: this.UpColor;
			}
			else
			{
				this.ForeColor = Color.LightGray;
				this.BackColor = Color.LightGray;
			}
		}

3. Example

Project: bdhero
Source File: SplitButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            State = Enabled ? PushButtonState.Normal : PushButtonState.Disabled;

            base.OnEnabledChanged(e);
        }

4. Example

Project: SharpBoot
Source File: SplitButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            State = Enabled ? PushButtonState.Normal : PushButtonState.Disabled;

            base.OnEnabledChanged(e);
        }

5. Example

Project: chummer5a
Source File: SplitButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
    {
        State = Enabled ? PushButtonState.Normal : PushButtonState.Disabled;

        base.OnEnabledChanged(e);
    }

6. Example

Project: dockpanelsuite
Source File: InertButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            if (Enabled == false)
            {
                m_mouseOver = false;
                m_mouseCapture = false;
                if (RepeatClick && ClickStatus != RepeatClickStatus.Stopped)
                    ClickStatus = RepeatClickStatus.Stopped;
            }
            Invalidate();
        }

7. Example

Project: EDDiscovery
Source File: ButtonExt.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            if (Enabled)
                SetDrawState(DrawState.Normal);
            else
                SetDrawState(DrawState.Disabled);

            base.OnEnabledChanged(e);
        }

8. Example

Project: InnovatorAdmin
Source File: FlatButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
    {
      base.OnEnabledChanged(e);
      if (this.Enabled)
      {
        this.Theme = _theme;
      }
      else
      {
        switch (_theme)
        {
          case FlatButtonTheme.Red:
            this.BackColor = System.Drawing.Color.FromArgb(234, 186, 198);
            break;
          case FlatButtonTheme.DarkGray:
            break;
          default:
            this.BackColor = System.Drawing.Color.FromArgb(238, 238, 238);
            break;
        }
      }
    }

9. Example

Project: ArnoldSimulator
Source File: InertButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
		{
			base.OnEnabledChanged(e);
			if (Enabled == false)
			{
				m_mouseOver = false;
				m_mouseCapture = false;
				if (RepeatClick && ClickStatus != RepeatClickStatus.Stopped)
					ClickStatus = RepeatClickStatus.Stopped;
			}
			Invalidate();
		}

10. Example

Project: winforms-modernui
Source File: MetroButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

11. Example

Project: winforms-modernui
Source File: MetroCheckBox.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

12. Example

Project: winforms-modernui
Source File: MetroLink.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

13. Example

View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

14. Example

Project: winforms-modernui
Source File: MetroTile.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

15. Example

Project: winforms-modernui
Source File: MetroToggle.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

16. Example

Project: ynoteclassic
Source File: InertButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            if (Enabled == false)
            {
                m_mouseOver = false;
                m_mouseCapture = false;
                if (RepeatClick && ClickStatus != RepeatClickStatus.Stopped)
                    ClickStatus = RepeatClickStatus.Stopped;
            }
            Invalidate();
        }

17. Example

Project: Mist
Source File: MetroButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

18. Example

Project: Mist
Source File: MetroCheckBox.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

19. Example

Project: Mist
Source File: MetroLink.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

20. Example

Project: Mist
Source File: MetroRadioButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

21. Example

Project: Mist
Source File: MetroTile.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

22. Example

Project: Mist
Source File: MetroToggle.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

23. Example

Project: winauth
Source File: MetroButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

24. Example

Project: winauth
Source File: MetroCheckBox.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

25. Example

Project: winauth
Source File: MetroLink.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

26. Example

Project: winauth
Source File: MetroRadioButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

27. Example

Project: winauth
Source File: MetroTile.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

28. Example

Project: winauth
Source File: MetroToggle.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            Invalidate();
        }

29. Example

Project: SquareOne
Source File: InertButton.cs
View license
protected override void OnEnabledChanged(EventArgs e)
        {
            base.OnEnabledChanged(e);
            if (Enabled == false)
            {
                m_mouseOver = false;
                m_mouseCapture = false;
                if (RepeatClick && ClickStatus != RepeatClickStatus.Stopped)
                    ClickStatus = RepeatClickStatus.Stopped;
            }
            Invalidate();
        }