B
bie2
Hi,
I need help on how to proceed with a multithreading.
I have a main form, which depending on what the user click will load a
user control. Some of these user controls will have a database
connection to load the data, and a way to do a batch insert for the
user.
When the user user is doing the batch insert, the UI is locked. So I
wanted to bring a form or user control which will contain a progress
bar an some information (like 23 records on 1000 inserted).
My question is how to proceed? I need to have the UI thread in the main
form, but what about the worker thread?
Since the progress bar is called in the user control, I think it should
be in the User control to put the worker thread, but not sure what will
happen for the UI in the user control???
Do the UI of the user control will be taken care by the thread in main
form.
Thanks
I need help on how to proceed with a multithreading.
I have a main form, which depending on what the user click will load a
user control. Some of these user controls will have a database
connection to load the data, and a way to do a batch insert for the
user.
When the user user is doing the batch insert, the UI is locked. So I
wanted to bring a form or user control which will contain a progress
bar an some information (like 23 records on 1000 inserted).
My question is how to proceed? I need to have the UI thread in the main
form, but what about the worker thread?
Since the progress bar is called in the user control, I think it should
be in the User control to put the worker thread, but not sure what will
happen for the UI in the user control???
Do the UI of the user control will be taken care by the thread in main
form.
Thanks