I am looking at creating a particular effect on a form, yes in some way i am taking some ideas from the old winamp skin but i am just starting with GDI. What i am aiming to do is create a coloured border around the form with some effects on it to make it look 3d. However i'm not bothered on the 3d effect for the moment. I have done it but i feel this is inefficient and a bit long winded and i am sure there is another way around this. I have attached the code below so you can see what i m doing.
I have also attached a random screenshot i grabbed from google images of winamp so you can see what i am trying to sort of achieve (it is the really thin border around the outside.
Currently i am drawing 4 rectangles around the outside of the form, which obviously gives it the border effect i am looking for but there must be another way to do this?
this.BackColor = Color.FromArgb(56, 55, 87);
#region Paint Stuff
protected override void OnPaint(PaintEventArgs e)
private void PaintFormBorder(Graphics e)
// Before i work out how to draw this properly, lets do it this way.
// Create the brush
SolidBrush brush = new SolidBrush(Color.FromArgb(25, 20, 26));
e.FillRectangle(brush, new Rectangle(0, 0, 8, this.Height));
e.FillRectangle(brush, new Rectangle(0, 0, this.Width, 8));
e.FillRectangle(brush, new Rectangle(this.Width - 8, 0, 8, this.Height));
e.FillRectangle(brush, new Rectangle(0, this.Height - 8, this.Width, 8));
protected override void OnResize(EventArgs e)