I have a form that gets opened, and it a separate thread I want a
timer at the bottom of the form to update while the datagridview is
updating.
In my main form I have this:
Dim t As New Thread(AddressO f ChildForm.Updat eRetrieveTimer)
t.Start()
<<Snip>>
Here is the code for the thread:
Public Sub UpdateRetrieveT imer()
Dim ts As TimeSpan
Dim s As String
Do While Not g_bRetreiveDone (g_ChildFormNum ber)
ts = Date.Now - g_dtStartQuery
s = String.Format(" {0:d2}:{1:d2}:{ 2:d2}", ts.Hours,
ts.Minutes, ts.Seconds)
Me.rssRetrieveT ime.Text = s
Loop
End Sub
The problem is on the line 'Me.rssRetrieve Time.Text = s'. It pauses
here.
timer at the bottom of the form to update while the datagridview is
updating.
In my main form I have this:
Dim t As New Thread(AddressO f ChildForm.Updat eRetrieveTimer)
t.Start()
<<Snip>>
Here is the code for the thread:
Public Sub UpdateRetrieveT imer()
Dim ts As TimeSpan
Dim s As String
Do While Not g_bRetreiveDone (g_ChildFormNum ber)
ts = Date.Now - g_dtStartQuery
s = String.Format(" {0:d2}:{1:d2}:{ 2:d2}", ts.Hours,
ts.Minutes, ts.Seconds)
Me.rssRetrieveT ime.Text = s
Loop
End Sub
The problem is on the line 'Me.rssRetrieve Time.Text = s'. It pauses
here.
Comment