使用GDI绘制文本
/// <summary>
/// 定义一个绘制文本
/// </summary>
public void Texts()
{
Graphics g = this.CreateGraphics();
g.DrawString("嘿嘿,O(∩_∩)O哈哈~",new Font("楷体",20),Brushes.Black,new Point(200,200));
}
private void btnText_Click(object sender, EventArgs e)
{
//调用
Texts();
}