I want for each line in multi-line textbox1 to copy each line into textbox2 and then check if value is true in textbox2. then if value is true, copy textbox2 and paste into textbox3.
private void button1_Click(object sender, EventArgs e) { foreach (string line in textBox1.Lines) //textbox1 is multi line and it needs to perform a button2 check for each line { textBox2.Text = line; // button2.PerformClick(); }} private void button2_Click(object sender, EventArgs e) { if(textBox2.Text == "0") { textBox3.Text = " " + textBox2.Text; }}
2.1m questions
2.1m answers
60 comments
57.0k users