Zagor,
It sounds like you are not using multithreading to help you out here.
What I would do is perform the check for the file in the UI (it shouldn't
take that long), and if they want to continue, put the operation on another
thread. This way, your UI should be responsive, and you shouldn't have a
problem with having to refresh or redraw.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Zagor" <za***@sympatico.ca> wrote in message
news:eY*************@TK2MSFTNGP11.phx.gbl...
Hi All,
I have an application that on a button click parse an existing txt file
and creates a new file with some other information.The operation its quite
lenghty. If the file already exist I prompt the user if they want to
overwrite the existing file. If the user chooses to go ahead the parser
processor starts.
Here is the problem... The messagebox get stuck to the screen and does
not look very nice. With the C++,MFC I used to redraw the screen to avoid
this problem, how can I do it in C#?
Thanks for your time and any help is appreciated.
Frank