private static void DrawRaisedBorder(Graphics g, Brush dark, Rectangle r, Brush darkdark, Brush light, Brush normal) {
g.FillRectangle(normal, r.Left, r.Top, r.Width - 1, 1);
g.FillRectangle(normal, r.Left, r.Top, 1, r.Height - 1);
g.FillRectangle(light, r.Left + 1, r.Top + 1, r.Width - 2, 1);
g.FillRectangle(light, r.Left + 1, r.Top + 1, 1, r.Height - 2);
g.FillRectangle(darkdark, r.Right - 1, r.Top, 1, r.Height);
g.FillRectangle(darkdark, r.Left, r.Bottom - 1, r.Width, 1);
g.FillRectangle(dark, r.Right - 2, r.Top + 1, 1, r.Height - 2);
g.FillRectangle(dark, r.Left + 1, r.Bottom - 2, r.Width - 2, 1);
}