My software requires storing the directory and registry structure for some specific locations. This usually takes a long time. Let's say I have a method called SaveState()that does this.
I want to wrap this in another method SaveStateWithProgress(), so when I call it, a modal dialog will appear that shows a simple indication of progress and has a button to cancel the operation. As I see it, I may need to use two threads, although in VB6 or Java that I used with the command Thread.Yield()I’m not sure if this is the best practice, and even if there is something like that in C #, What is the best way to do this ?
source
share