If the processing is happening on the main thread then the form wont get a
chance to redraw while the processing is happening. You would need to run the
processing on another thread which would allow the UI thread to redraw the
button or try something like this.Refresh or Application.DoEvents
These are both a little bit hack like to me though. I would put the
processing on another thread to keep the UI responsive while its happening
but disable buttons and the like to stop the user doing something the UI is
not ready for while its happening.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"tshad" wrote:
> I have an executable that has a button that I want to change the name of to
> "Now Processing...".
>
> When the process is done, I want to change it back.
>
> The problem is that the form is not showing the new name. I assume I would
> need to flush it somehow to get the display to show.
>
> The code is:
>
> ProcessFiles.Name = "Now Processing...";
>
> Transform.XlateCSVToSQL();
>
> ProcessFiles.Name = "Process Files";
>
> Thanks,
>
> Tom
>
>
>