Without knowing the specifics of your application its hard to answer. If you end up doing a lot of work that might take a while, do it in a thread so the GUI doesn't lock up. You should also do it in...