在控件RichTextBox内输入的字符串如何存为string型变量内呢?
string str=richtext.Rtf.ToString();
结果输出来是一些乱七八糟的东西,请各位帮忙解决下,不胜感激!谢谢!
string str=richtext.Rtf.ToString();
结果输出来是一些乱七八糟的东西,请各位帮忙解决下,不胜感激!谢谢!
解决方案 »
- 求一个不用三层结构实现gridview的增删改查的源码!
- socket网络通信连接的问题,求大神帮忙。。。。。。
- System.Data.OleDb.OleDbException: 未指定的错误,已经关闭了数据链接
- c#.net 中如何在一个窗体中关闭另一个窗体?
- 谁有RTSP协议的详细说明?想实现个RTSP重定向功能,不知道从哪里入手。
- 怎么制作window资源文件,怎么加载他????
- 请大家帮我分析一下以下的方法在使用过程中会不会对服务器造成很大压力
- 求C# .NET 单击选中外部ListView的方法
- Remoting中的错误,如何解决?
- VC想转型,用VB.net好还是用C#.net好,还是用VC.NET好???
- C# VS2005 水晶报表 客户端不能打印??
- c#开发
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace MDI
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void button1_Click(object sender, EventArgs e)
{
string str;
str = richTextBox1.Text; richTextBox2.Text = str;
}
}
}