Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub eqptime_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles eqptime1.Tick,eqptime2.Tick,eqptime3.Tick,eqptime4.Tick,eqptime5.Tick
...
Dim timername as String
timername = <which timer was called>.???
End Sub
Private Sub eqptime1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles eqptime1.Tick, eqptime2.Tick, _
eqptime3.Tick, eqptime4.Tick, eqptime5.Tick
Dim timername As String
tmr1 = tmr1 + 1
eqptimer1_4.Text = tmr1
If tmr1 = 10 Then
e1a = e1a + 1
tmr1 = 0
End If
If e1a = 60 Then
e1b = e1b + 1
e1a = 0
End If
If e1b = 60 Then
e1c = e1c + 1
e1b = 0
End If
eqptimer1_3.Text = e1a
eqptimer1_2.Text = e1b
eqptimer1_1.Text = e1c
End Sub
Dim timername As String
timername = DirectCast(sender, Timer).Tag.ToString
Public Class MyTimer
Inherits System.Windows.Forms.Timer
Private FName As String = String.Empty
Public Property Name() As String
Get
Return FName
End Get
Set(ByVal value As String)
FName = value
End Set
End Property
End Class
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MyTimer1.Start()
End Sub
Private Sub MyTimer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyTimer1.Tick
MyTimer1.Stop()
MessageBox.Show(CType(sender, MyTimer).Name)
End Sub
End Class
Public Class MyTimer
Inherits System.Windows.Forms.Timer
Private FName As String = String.Empty
Public Property Name() As String
Get
Return FName
End Get
Set(ByVal value As String)
FName = value
End Set
End Property
End Class
MessageBox.Show(CType(sender, MyTimer).Name)