I try to recreate a situation where you press the button the second form which includes a video keeps showing every few seconds. If I leave the loop, the form shows up as it should but as soon as I loop it, I just get nothing just extra programs in my task bar but they wont show up.

My question is: if I am able to loop the program so when I click the button the form just keep popping up every few seconds and how i can achieve this.

Form 1 with button:

private void button1_Click(object sender, EventArgs e)
    int loop = 0;
    while (loop < 10)
        var myForm = new Form2();

the end result is to just repeat the form endlessly and that every time the form2 deploysand is visible.

0 Answers