privatevoid另存为AToolStripMenuItem_Click(objectsender,EventArgse){if(saveFileDialog1.ShowDialog()==DialogResult.OK){StreamWritersw=newStreamWriter(saveFileDialog1.FileName,false,Encoding.Default);sw.Write(textBox1.Text);sw.Close();