Click here to Skip to main content
15,913,854 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DataReports in .Net Pin
aseef19-Jan-06 0:47
aseef19-Jan-06 0:47 
GeneralRe: DataReports in .Net Pin
Dave Kreskowiak19-Jan-06 3:25
mveDave Kreskowiak19-Jan-06 3:25 
GeneralRe: DataReports in .Net Pin
aseef21-Jan-06 2:38
aseef21-Jan-06 2:38 
GeneralRe: DataReports in .Net Pin
Dave Kreskowiak21-Jan-06 4:23
mveDave Kreskowiak21-Jan-06 4:23 
QuestionVB6: How to display a row of data in textbox? Pin
steventry17-Jan-06 22:29
steventry17-Jan-06 22:29 
AnswerRe: VB6: How to display a row of data in textbox? Pin
mayhem_rules18-Jan-06 1:01
mayhem_rules18-Jan-06 1:01 
QuestionTimer Elapsed Event Pin
elcheah17-Jan-06 22:05
elcheah17-Jan-06 22:05 
AnswerRe: Timer Elapsed Event Pin
Joshua Quick17-Jan-06 22:24
Joshua Quick17-Jan-06 22:24 
You could disable the timer at the beginning of the event handler and then re-enable it at the end. That is if you don't mind the interval drifting a bit.
Public Sub TimerFired(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)
   myTimer.Enabled = False
   ' Do something...
   myTimer.Enabled = True
End sub

Or you could block an interrupting event's entry by using a simple flag. An old school approach.
Private m_isBusy As Boolean = False
Public Sub TimerFired(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)
   If (m_isBusy) Then Return
   m_isBusy = True
   ' Do something...
   m_isBusy = False
End sub

GeneralRe: Timer Elapsed Event Pin
elcheah17-Jan-06 23:09
elcheah17-Jan-06 23:09 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 7:15
Joshua Quick18-Jan-06 7:15 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 14:50
elcheah18-Jan-06 14:50 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 15:30
Joshua Quick18-Jan-06 15:30 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 15:57
elcheah18-Jan-06 15:57 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 16:23
Joshua Quick18-Jan-06 16:23 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 18:03
elcheah18-Jan-06 18:03 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 18:23
Joshua Quick18-Jan-06 18:23 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 21:17
elcheah18-Jan-06 21:17 
QuestionCalling C function in VB.net Pin
jpvillemagne17-Jan-06 22:04
jpvillemagne17-Jan-06 22:04 
AnswerRe: Calling C function in VB.net Pin
Guffa18-Jan-06 1:08
Guffa18-Jan-06 1:08 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne26-Jan-06 0:28
jpvillemagne26-Jan-06 0:28 
AnswerRe: Calling C function in VB.net Pin
Guffa27-Jan-06 7:06
Guffa27-Jan-06 7:06 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 21:21
jpvillemagne1-Feb-06 21:21 
AnswerRe: Calling C function in VB.net Pin
Guffa1-Feb-06 21:40
Guffa1-Feb-06 21:40 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 23:10
jpvillemagne1-Feb-06 23:10 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 23:14
jpvillemagne1-Feb-06 23:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.