C# load 和构造函数有什么区别?
public Form1()
{}
和 PUBLIC FORM1_LOAD()
{}
有什么区别呢?
内容写在他俩中有什么区别? 最好举个例子给我看下
还有
private void printbutton_Click(object sender, EventArgs e)
{
using (Brush b = new SolidBrush(Color.Black))
{
Graphics g = this.CreateGraphics();
g.DrawString("123456789", new Font("3 of 9 Barcode", 16), b, new Rectangle(10, 10, 200, 200));//3 of 9 Barcode这个是你安装的字体的名字,在C:\WINDOWS\Fonts下查看
}
}
我写在BUTTON中可以执行,也可以画出条码,但是写在LOAD中为什么不能在程序刚启动的时候直接画出来呢?