c#,Split以换行符分割,并填入到对应文本框

1 string MSG = TextBox1.Text;
2 string[] New_MSG = MSG.Split(new string[] {"\r\n"}, StringSplitOptions.None);
3 TextBox2.Clear();
4 TextBox3.Clear();
5 TextBox2.Text =  New_MSG[0];
6 TextBox3.Text =  New_MSG[1];

 

posted @ 2019-04-17 09:50  小宇先森  阅读(1931)  评论(1编辑  收藏  举报