Încearcă ceva de genul:
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
string text2 = " Biblioteca";
using (Font font2 = new Font("Arial", 11, FontStyle.Bold))
{
Rectangle rect2 = new Rectangle(0, 0, 170, 30);
e.Graphics.DrawRectangle(new Pen(Color.Black), rect2);
Rectangle rect1 = new Rectangle(0, 7, 170, 15);
e.Graphics.DrawString(text2, font2, new SolidBrush(Color.Black), rect1);
}
}
Răzvan
PS. E prima dată când scriu cod C# pentru un Smart Device...