J
JL
for VB 2005
On the main UI several controls are disabled and sevral variables are
set BEFORE the background thread is started
I would like to renabled those controls and reset those variables
after the background thread is finished.
I could see using the control.invoke. but with the number of controls
and variables I would just like to call a seperate sub that renables
the controls like the one that disables them
Thread.join (as I understand it) won't work as I do not want to lock
the form.
Events won't (I could be wrong) because they are raised on the same
background thread (again the UI controls)
I'm thinking I must use a timer control to check if the background
thread is still running.
If that works then fine
But is there there another way?
Bottom line: when a worker thread started by the UI is done how can I
trigger a procedure in the UI?
Thank you
On the main UI several controls are disabled and sevral variables are
set BEFORE the background thread is started
I would like to renabled those controls and reset those variables
after the background thread is finished.
I could see using the control.invoke. but with the number of controls
and variables I would just like to call a seperate sub that renables
the controls like the one that disables them
Thread.join (as I understand it) won't work as I do not want to lock
the form.
Events won't (I could be wrong) because they are raised on the same
background thread (again the UI controls)
I'm thinking I must use a timer control to check if the background
thread is still running.
If that works then fine
But is there there another way?
Bottom line: when a worker thread started by the UI is done how can I
trigger a procedure in the UI?
Thank you