[]
Paints the background of the control.
public virtual void OnPaintBackground(Graphics g, Rectangle rectInput)
Public Overridable Sub OnPaintBackground(g As Graphics, rectInput As Rectangle)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics object |
Rectangle | rectInput | Coordinates of the control to paint |
Paints the background of the control with an overriding style.
public virtual void OnPaintBackground(Graphics g, Rectangle rectInput, ElementStyle overrideStyle)
Public Overridable Sub OnPaintBackground(g As Graphics, rectInput As Rectangle, overrideStyle As ElementStyle)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics object |
Rectangle | rectInput | Coordinates of the control to paint |
ElementStyle | overrideStyle | ElementStyle to use when painting |
Occurs when the control has been asked to repaint itself.
protected override void OnPaintBackground(PaintEventArgs e)
Protected Overrides Sub OnPaintBackground(e As PaintEventArgs)
Type | Name | Description |
---|---|---|
PaintEventArgs | e | Event arguments |