Start timer to another form

  • Thread starter Thread starter kafsar
  • Start date Start date
K

kafsar

Guest
Unable to start timer to another form.

Both form (form1 and form2) running same at the time,

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

Timer1.Enable = True
Timer1.Start()

Dim f As New Form
f = form2
f.ShowDialog()

End Sub


than form1 timer1 start and after 20 sec I want start form2.timer2 from form1.

Private Sub Timer1_Elapsed(sender As System.Object, e As System.Timers.ElapsedEventArgs) Handles Timer1.Elapsed

form2.timer2.enable = true
form2.timer2.start()

End Sub

but nothing start,,any help please

Continue reading...
 
Back
Top