tags:

views:

41

answers:

2

hello,

how can i stop a timer after one time?

thanks

+1  A: 

I assume by timer you mean the Windows Form element Timer. So if I'm wrong feel free to disregard this.

The best way to have it only go off once is to have it turn its own .Enable false at the end of the function. Thus any time it is enabled, the timer will function as normal, until it goes off then it will disable itself until the next time it is enabled.

Hope this helps!

Lunin
A: 

hello,

yes it works. thanks!

vb.net