Ah zaboravio sam, evo ti odgovor na pitanje(Jedan od najlaksih nacina);
Code:
private void DrawTextBox(TextBox txt, Point p, Graphics g)
{
int iBorder = 2;
ControlPaint.DrawBorder(g,
new Rectangle(p.X, p.Y, txt.Width, txt.Height),
SystemColors.Control,
iBorder,
ButtonBorderStyle.Inset,
SystemColors.Control,
iBorder,
ButtonBorderStyle.Inset,
SystemColors.Control,
iBorder,
ButtonBorderStyle.Inset,
SystemColors.Control,
iBorder,
ButtonBorderStyle.Inset);
g.FillRectangle(new SolidBrush(txt.BackColor),
p.X + iBorder,
p.Y + iBorder,
txt.Width - 4,
txt.Height - 5);
g.DrawString(txt.Text,
txt.Font,
new SolidBrush(txt.ForeColor),
p.X + iBorder,
p.Y + (txt.Height / 2) - (g.MeasureString(txt.Text, txt.Font).Height / 2));
}