B
Burns
Hi,
I asked this question before, but didn't get the answer I
was looking for, so I'm hoping if I re-phrase it it'll
make more sense.
I'm trying to write a MultiReplace program that will
replace a word or phrase in multiple text files. I have
written most of the code to do this, but I want to
display a progress bar to the user as it goes through the
files.
I've designed a simple form with a progress bar and a
cancel button that I wish to display as the replace code
is running.
At the moment I have a main dialog window which allows
the user to specify what they want to find and replace.
When they click the "Replace" button in this dialog, it
creates an instance of my second dialog (the one with the
progress bar) and calls the .ShowDialog method on it.
Now I need to know how to run my "replace" code once the
second dialog has displayed, since the .ShowDialog method
won't return until the second dialog has closed. I know
I could use the .Show method, but I want the dialog to be
modal.
I hope this makes sense.
Cheers,
Burns
I asked this question before, but didn't get the answer I
was looking for, so I'm hoping if I re-phrase it it'll
make more sense.
I'm trying to write a MultiReplace program that will
replace a word or phrase in multiple text files. I have
written most of the code to do this, but I want to
display a progress bar to the user as it goes through the
files.
I've designed a simple form with a progress bar and a
cancel button that I wish to display as the replace code
is running.
At the moment I have a main dialog window which allows
the user to specify what they want to find and replace.
When they click the "Replace" button in this dialog, it
creates an instance of my second dialog (the one with the
progress bar) and calls the .ShowDialog method on it.
Now I need to know how to run my "replace" code once the
second dialog has displayed, since the .ShowDialog method
won't return until the second dialog has closed. I know
I could use the .Show method, but I want the dialog to be
modal.
I hope this makes sense.
Cheers,
Burns