Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. this.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
  2.  
  3. protected override void OnPaintBackground(PaintEventArgs e)
  4. {
  5. //base.OnPaintBackground(e); //comment this out to prevent default painting
  6. using (SolidBrush brush = new SolidBrush(Color.Purple)) //any color you like
  7. e.Graphics.FillRectangle(brush, e.ClipRectangle);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement