How can i make a button bee clicked every 30 seconds


How can i make a button bee clicked every 30 seconds


System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer(); 
timer.Interval = 30000; 
timer.Tick += new EventHandler(timer_Tick);

static void timer_Tick(object sender, EventArgs e) 
{ button1.PerformClick(); }

No comments