L
L
libera2015-12-15 15:24:53
C++ / C#
libera, 2015-12-15 15:24:53

When pressing 1 button, perform a cycle of actions from another button?

private void button4_Click(object sender, EventArgs e)
        {
            int i;
            for (i = 1; i <= 2; i++)
            {
               
                 
            }
            textBox5.Text = (i).ToString();
        }

It is necessary that when this button is pressed, actions from another button are performed.
In essence, press 1 button, and there will be a cycle that itself will press another button n h times

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill, 2015-12-15
@libera

for (i = 1; i <= 2; i++)
{
  button3_Click(sender, e);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question