怎样把显示在richTextBox1的数据存到文本文件里?
解决方案 »
- 求助~用C#语言做模糊查询
- 数字证书读取 Winform
- 问个数据统计的小问题~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 怎样将Range中的数据转到DataSet中啊
- 鼠标事件
- 编译ActivexDLL类型为何一定要选为Com Interop 注册? 这个生成项目的选项是什么意思呢??
- provider: 命名管道提供程序, error: 0 - 管道的另一端上无任何进程。
- 怎样向SQL 2000 中插入数据(具体看内容 “C#新手”)
- 请帮忙:问题两则,能回答任何一则均有分!!!!!!!!!
- WebRequest的问题
- C#winform c/s系统中怎样上传文件到s,用什么控件呀
- 菜鸟急等
RichTextBox.SaveFile(Stream, RichTextBoxStreamType)
// C#
// NOTE: You must import the following namespace:
// using System.IO;
// Without this import statement at the beginning
// of your code, the code example will not function.
private void button1_Click(object sender, System.EventArgs e)
{
if((saveFileDialog1.ShowDialog() == DialogResult.OK)
{
richTextBox1.SaveFile(saveFileDialog1.FileName, RichTextBoxStreamType.PlainText);
}
}