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
时间: 2024-10-05 05:04:53