Given this:
Public Sub timReminder_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
If DateTime.Now() > g_RemindTime Then
Reminders.ShowDialog()
timReminder.Enabled = False
End If
End Sub
I want to be able to say this (as I would in Delphi):
timReminder.Tick = timReminder_Tick
But I get errors when I try it.
Does anyone know how I can assign a custom event to a timer's on-tick event at runtime in VB.NET?