David wrote:[color=blue]
> Is this means Timer control in VB.NET is not Asynchronous (like VB6 Timer
> control) ? Or am I missing something? Please help!!![/color]
The VB6 Timer control was never asynchronous. It worked exactly the same
as every other event driven component. When an event fires, the programs
instruction pointer is saved and then moved to the top of the event
handler procedure and will be returned to the saved address when the End
Sub runs in that event handler procedure.
Private Sub ABC()
1 code here
2 code here
3 code here
'timer event fires after running line 3
'code in timer's event handler runs
'returns to line 4 after the End Sub in the timer event
4 code here
5 code here
6 code here
End Sub
Private Sub Timer1_Timer()
'This entire procedure runs before
'returning to line 4 above
'it will never return until the line below runs
End Sub
--
Ken Halter - MS-MVP-VB -
http://www.vbsight.com
Please keep all discussions in the groups..