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

Visual Basic

 
AnswerRe: VB 6.0 to VB.Net Migration OCXState problem Pin
Ashfield28-Sep-08 21:32
Ashfield28-Sep-08 21:32 
AnswerRe: VB 6.0 to VB.Net Migration OCXState problem Pin
Dave Kreskowiak29-Sep-08 1:41
mveDave Kreskowiak29-Sep-08 1:41 
QuestionHow to filter automated web requests in asp.net Pin
developer10@gmail.com28-Sep-08 2:50
developer10@gmail.com28-Sep-08 2:50 
AnswerRe: How to filter automated web requests in asp.net Pin
Wendelius28-Sep-08 4:42
mentorWendelius28-Sep-08 4:42 
QuestionClose 'alert' windows in webbrowser control Pin
Member 377616228-Sep-08 0:37
Member 377616228-Sep-08 0:37 
QuestionTimer_Tick event not called Pin
Sonhospa28-Sep-08 0:30
Sonhospa28-Sep-08 0:30 
AnswerRe: Timer_Tick event not called Pin
Wendelius28-Sep-08 4:40
mentorWendelius28-Sep-08 4:40 
QuestionRe: Timer_Tick event not called Pin
Sonhospa28-Sep-08 5:10
Sonhospa28-Sep-08 5:10 
Hi Mika,

as the timer is surely enabled I have to ask you what 'it isn't wired' would mean? I thought as soon as the timer is started the tick-event would start until the timer is stopped?

You're surely right regarding the interval which I had set to 100 before. When I'm back to a reliable tick-event I guess I can switch that back since it's only needed for the form's update. I hope with your help I'll have a timer-tick again soon ...

I found a weird effect, too: running the app from debug-mode, the tick-event seems to run sometimes and therefore update my timer-label - I just can't tell the exact conditions. It feels a bit like the Backgroundworker eventually blocks the timer...(is there no 'DoEvents' or similar command to put there anymore?) like under 'race conditions'.

I thought I'd probably post a part of the code:
Private Sub Main()
    UpdateDriveInformation()
    ProgressIndicator.Style = ProgressBarStyle.Marquee
    startTime = Now
    Timer.Enabled = True

    If PROC_MAKELIST Then
        ThreadID.Text = TXT_MAKELIST
        BackgroundWorker2.RunWorkerAsync()
    Else
        ThreadID.Text = TXT_DELREPORTS
        GroupBox1.Text = TXT_MAKELIST
        BackgroundWorker3.RunWorkerAsync()
    End If
End Sub

Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
    Dim mDbl As Double = Now.ToOADate - startTime.ToOADate
    Dim mDat As DateTime = DateTime.FromOADate(mDbl)
    Try
        Dim mDat2 As Date = Date.FromOADate(mDbl)
        lblTimer.Text = mDat2.ToString("mm:ss")
    Catch ex As Exception
        lblTimer.Text = "Timer Error!"
        Err.Clear()
    Finally
        lblTimer.Refresh()
    End Try
End Sub
Maybe you see something wrong here?

Thanks for now

modified on Sunday, September 28, 2008 11:35 AM

AnswerRe: Timer_Tick event not called Pin
Wendelius28-Sep-08 5:34
mentorWendelius28-Sep-08 5:34 
QuestionRe: Timer_Tick event not called Pin
Sonhospa28-Sep-08 5:49
Sonhospa28-Sep-08 5:49 
AnswerRe: Timer_Tick event not called Pin
Wendelius29-Sep-08 3:31
mentorWendelius29-Sep-08 3:31 
NewsRe: Timer_Tick event not called Pin
Sonhospa29-Sep-08 3:58
Sonhospa29-Sep-08 3:58 
GeneralRe: Timer_Tick event not called Pin
Wendelius29-Sep-08 4:19
mentorWendelius29-Sep-08 4:19 
GeneralRe: Timer_Tick event not called Pin
Sonhospa29-Sep-08 5:03
Sonhospa29-Sep-08 5:03 
GeneralRe: Timer_Tick event not called Pin
Wendelius29-Sep-08 5:56
mentorWendelius29-Sep-08 5:56 
GeneralRe: Timer_Tick event not called Pin
Sonhospa29-Sep-08 6:17
Sonhospa29-Sep-08 6:17 
GeneralRe: Timer_Tick event not called Pin
Wendelius29-Sep-08 6:24
mentorWendelius29-Sep-08 6:24 
GeneralRe: Timer_Tick event not called Pin
Jon_Boy29-Sep-08 7:57
Jon_Boy29-Sep-08 7:57 
JokeRe: Timer_Tick event not called Pin
Sonhospa29-Sep-08 11:25
Sonhospa29-Sep-08 11:25 
QuestionPrint the values in Crystel Reports Pin
vidhish27-Sep-08 22:11
vidhish27-Sep-08 22:11 
AnswerRe: Print the values in Crystel Reports Pin
Mycroft Holmes28-Sep-08 16:31
professionalMycroft Holmes28-Sep-08 16:31 
QuestionHEEELP: Regular Expressions Pin
Sonhospa27-Sep-08 3:20
Sonhospa27-Sep-08 3:20 
AnswerRe: HEEELP: Regular Expressions Pin
Sonhospa27-Sep-08 11:12
Sonhospa27-Sep-08 11:12 
GeneralRe: HEEELP: Regular Expressions Pin
Paul Conrad27-Sep-08 11:18
professionalPaul Conrad27-Sep-08 11:18 
GeneralRe: HEEELP: Regular Expressions Pin
Sonhospa27-Sep-08 12:11
Sonhospa27-Sep-08 12:11 

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.