lundi 20 avril 2015

c# windows form- How Starting Application auto click button1

I am working in windows form application. Actually I am need my work.exe close. wait 4 second time after again start with click button1. is that possible? see my code.

Application.Exit();
        delay(400);
        System.Diagnostics.Process.Start("C:\\Users\\Administrator\\Desktop\\application.exe");
        delay(300);
        button1.PerformClick();

Aucun commentaire:

Enregistrer un commentaire