This website stores cookies on your computer.
These cookies are used to improve your website
experience and provide more personalized services
to you, both on this website and through other media.
To find out more about the cookies we use, see our
Privacy Policy
Comments
I don't think you need to run only CompareWith on a separate thread, what you should do is spawn a new thread and put the whole comparison function in that (all the way from database.register to CompareWith) and use the StatusEventHandler delegate in the progress bar's window to upgate the progress bar.
You can add a StatusEventHandler to the database object's Status event and when comparewith runs, the delegate should run whatever function you have specified (ie updating the progress bar).