第2个回答 2011-08-26
写在WindowFrom 窗体load 事件中 使用GDI+ 技术
Bitmap bitmap = new Bitmap(this.Height, this.Width); // 画布的大小
Graphics g = Graphics.FromImage(bitmap);
g.DrawString("GDI+ 技术", new Font("宋体", 12), new SolidBrush(Color.Red), this.Width / 3, 0);
g.DrawLine(new Pen(Color.Yellow, 12), 0, 40, this.Width, 40);
g.DrawLine(new Pen(Color.Red, 0.1F), 0, 80, this.Width, 80);
this.BackgroundImage = bitmap;
g.Dispose();