How to make it so that when you press a button, the second button is pressed simultaneously?
2 answers
private void button1_Click(object sender, EventArgs e) { button2.PerformClick(); } - Thank you so much! - Dmitry
|
Just trigger the event of pressing the button by clicking on another:
private void button1_Click(object sender, EventArgs args) { } private void button2_Click(object sender, EventArgs args) { button1_Click(sender, args); } - Thank you very much! Your option also works! - Dmitry
|
одновременно нажималась вторая кнопка. What would it visually look like a pressing process, i.e. when we press the first button it looks like it’s like someone presses the second button. Or do you need that when you click on the first button, the second button handler runs? - sp7