初学者c#窗体写不出文本,求指教
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e){
SolidBrush blueBrush = new SolidBrush(Color.Blue);
SolidBrush redBrush = new SolidBrush(Color.Red);
SolidBrush greenBrush = new SolidBrush(Color.Green);
Rectangle rect = new Rectangle(20, 20, 200, 100);
String drawString = "Hello GDI+ World!";
Font drawFont = new Font("Verdana", 14);
float x = 100.0F;
float y = 100.0F;
StringFormat drawFormat = new StringFormat();
drawFormat.FormatFlags = StringFormatFlags.DirectionVertical;
e.Graphics.DrawString("Drawing text", new Font("Tahoma", 14), greenBrush, rect);
e.Graphics.DrawString(drawString, new Font("Arial", 12), redBrush, 120, 140);
e.Graphics.DrawString(drawString, drawFont, blueBrush, x, y, drawFormat);
blueBrush.Dispose();
redBrush.Dispose();
greenBrush.Dispose();
drawFont.Dispose();
}