System.Windows.Forms.Control.OnSystemColorsChanged(System.EventArgs)

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

6 Examples 7

1. Example

Project: TxTranslation
Source File: Form1.cs
View license
protected override void OnSystemColorsChanged(EventArgs args)
		{
			base.OnSystemColorsChanged(args);
			Font = SystemFonts.MessageBoxFont;
		}

2. Example

Project: Dithering
Source File: Line.cs
View license
protected override void OnSystemColorsChanged(EventArgs e)
    {
      base.OnSystemColorsChanged(e);

      this.Invalidate();
    }

3. Example

Project: OpenLiveWriter
Source File: BorderControl.cs
View license
protected override void OnSystemColorsChanged(EventArgs e)
        {
            //	Call the base class's method so that registered delegates receive the event.
            base.OnSystemColorsChanged(e);

            //	Obtain the theme border color again.
            themeBorderColor = ColorHelper.GetThemeBorderColor(SystemColors.ControlDark);

            //	Invalidate.
            Invalidate();
        }

4. Example

Project: xenadmin
Source File: DoubleBufferedPanel.cs
View license
protected override void OnSystemColorsChanged(EventArgs e)
        {
            base.OnSystemColorsChanged(e);
            RefreshBuffer();
        }

5. Example

View license
protected override void OnSystemColorsChanged(EventArgs e)
    {
      base.OnSystemColorsChanged(e);

      this.CreateResources();
      this.Invalidate();
    }

6. Example

View license
protected override void OnSystemColorsChanged(EventArgs e)
    {
      base.OnSystemColorsChanged(e);

      this.CreateResources();
      this.Invalidate();
    }