Hi. I have a Sub that consumes some time.
it also calls a WebService so it can take few seconds or minutes.
during that time I'd like to run some Form's animation code that wakes on timer Tick.
I'm using BeginInvoke thread method to run MySub
But the timer does not tick during that time (but only after MySub is finished).
Why is that? and how can it be fixed?
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Animate_Notification_icon_Timer.Tick
'my animation code.
Friend WithEvents Animate_Notification_icon_Timer As System.Windows.Forms.Timer
Delegate Sub InvokeDelegateMySub()
Me.BeginInvoke(New InvokeDelegateMySub(AddressOf MySub))