R
ram s via .NET 247
Hi
On the click of a button on the main form i call 4 threads(addressof class files) which do som process on different tablesin the db. I have variables in the threads which store value ofthe record being processed. How can i trap this value in themain form and display it so that the user knows the progress ofthe processing?
sample portion of my code:
Dim objDataProcess As New clsDataProcess
Dim processThrd As New Thread(AddressOf processEmp)
Private Sub btnSync_Click(ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles btnSync.Click
processThrd.Start()
End Sub
Private Sub processEmp()
Dim rtnValC As String
rtnValC = objDataProcess.processEmp
End Sub
objDataProcess.processEmp is the function that actually processesthe records. let's say i have a variable recCount in it thatincrements with each record process. How i can access thisvariable in the main form?
On the click of a button on the main form i call 4 threads(addressof class files) which do som process on different tablesin the db. I have variables in the threads which store value ofthe record being processed. How can i trap this value in themain form and display it so that the user knows the progress ofthe processing?
sample portion of my code:
Dim objDataProcess As New clsDataProcess
Dim processThrd As New Thread(AddressOf processEmp)
Private Sub btnSync_Click(ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles btnSync.Click
processThrd.Start()
End Sub
Private Sub processEmp()
Dim rtnValC As String
rtnValC = objDataProcess.processEmp
End Sub
objDataProcess.processEmp is the function that actually processesthe records. let's say i have a variable recCount in it thatincrements with each record process. How i can access thisvariable in the main form?