0

I am trying to build some scheduler using ontimedevent.

To keep it fast, I want to fill an array before starting the Timer and then pass it on to my

"Private Shared Sub OnTimedEvent(source As Object, e As ElapsedEventArgs)"

Is it possible to add the array as argument to the addhandler, i.e.

AddHandler aTimer.Elapsed, AddressOf OnTimedEvent(array)

(Unfortunately this does not work) Thanks in advance

Leo Chapiro
  • 13,678
  • 8
  • 61
  • 92

0 Answers0