SampleApp.MainForm.OnPaintBackground C# (CSharp) Method

OnPaintBackground() protected method

Paints the background of the control.
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void
        protected override void OnPaintBackground(PaintEventArgs e)
        {
            base.OnPaintBackground(e);

            if (SafeNativeMethods.IsAeroEnabled)
            {
                // paint background black to enable include glass regions
                e.Graphics.Clear(Color.FromArgb(0, this.BackColor));
            }
        }
MainForm