0

Stop a program if a condition happen.

Hi .i wrote a program and it stars with a button press. I want to stop program if some condition happen and program go back to the point before button pressed.can anyone help me please

3rd Jul 2017, 12:24 PM
Abolhasan Me
Abolhasan Me - avatar
2 Réponses
+ 1
while(condition) //things you want to do.. //things you want to do.. //things you want to do.. Application.Restart();
3rd Jul 2017, 1:57 PM
2_3rr0r5
2_3rr0r5 - avatar
0
thanks alot. it is helpful.
3rd Jul 2017, 3:47 PM
Abolhasan Me
Abolhasan Me - avatar