private void button1_Click(object sender, EventArgs e) { textBox2.Text = ""; string str = ""; foreach (string s2 in textBox1.Lines) { if(s2==""){ continue; } str += s2.Trim()+"\r\n"; } textBox2.Text = str; }
本文共 400 字,大约阅读时间需要 1 分钟。
private void button1_Click(object sender, EventArgs e) { textBox2.Text = ""; string str = ""; foreach (string s2 in textBox1.Lines) { if(s2==""){ continue; } str += s2.Trim()+"\r\n"; } textBox2.Text = str; }
转载于:https://www.cnblogs.com/enych/p/9295839.html