private void button1_Click(object sender, EventArgs e) {//设置应用程序图标 string MyFileName = Application.StartupPath + "\\MyIcon.ico"; this.Icon = new Icon(MyFileName); }
private void button1_Click(object sender, EventArgs e) {//设置应用程序图标 string MyFileName = Application.StartupPath + "\\MyIcon.ico"; this.Icon = new Icon(MyFileName); }