Solved

How can I stop current timers from firing again and terminate a sub

Posted on 2013-01-17
2
207 Views
Last Modified: 2013-01-23
I have a timer that is fired every 100ms inside that timer I have different sub routine that are executed. If I hit a condition in which I would like to stop the timer and also exit the sub without re entering how could I do that?
0
Comment
Question by:cmdolcet
2 Comments
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 38789537
Stop the timer and exit the sub, just like you said?

    Timer1.Stop()
    Exit Sub
0
 
LVL 2

Accepted Solution

by:
MMTadmin earned 300 total points
ID: 38789741
Every 100ms damn that's a lot of doing

Private Sub Timer

Timer.enabled = false
DoThis

End Sub

Private Sub DoThis

Debug.Print "Hello"
Timer.Enabled = True

End Sub
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now