请教如何获取textbox里的值并保存
rt
savefile = new SaveFileDialog();
savefile.Title = "保存文件 ";
savefile.Filter = "Text|*.text ";
savefile.ShowDialog();
if (savefile.FileName != " ")
{
if (savefile.ShowDialog()==DialogResult.OK)
{
StreamReader sr = new StreamReader(textBox1.Text);
savefile.FileName = sr.ToString();
//this.textBox1.Text = savefile.FileName;
//using (StreamWriter sw = new StreamWriter(savefile.FileName))
//{
// sw.Write(textBox1.Text);
// sw.Close();
// textBox1.Modified = false;
&nb