I've developed an app that reads in a csv file, strips it out to its component fields, validates them and writes it up to the database.
So far, so good.
I now want to enhance it so that the dataloading take place in the background enabling the UI to be used for some progress indication when loading large files.
I've managed to get the loading working in both a thread and backgroundworker but have not managed to do anything successful with the UI. I've read numerous posts on the net, which seem to make sense but I can't see how to apply them to my "real world" situation.
If I use a thread, I can't do anything with the controls on the form as they belong to another thread. When I tried the backgroundworker, the UI still appears to be frozen.
So I've stripped all that code out and my app is running on the single thread again.
I've tried to keep the code on the form to just the visual effects calling methods in another class to do the data reading, manipulation, validation and loading.
Any help would be greatly appreciated, as I just can't get it to do what I need.