Refreshing modeless dialogs?



What is the preferred way to refresh modeless dialogs?

I am using the modeless dialog that shows a progress of a sequential
process.
The dialog class has nonvisual properties containg the progress status data
and the dialog window has a timer and refreshes on every tick, but it does
not seem to work correctly.

Maybe I am doing it all wrong... what is a suggested way of programing this,
provided that I want to have one general dialog for many sequential
processes?

I imagine the usage should look something like this:

void SequentialProcess()
{
int Step = 0;
ProgressDialog pd = new ProgressDialog();
pd.Show();

some_loop {
...
Step++;
pd.ProgressValue = Step; // this line should not refresh anything
because it would be too costly
}

pd.Close();
}

And the ProgressDialog should refresh itself, on timer for instance...

Regards,
DoB.


.



Relevant Pages

  • Re: How do display progress with a logn running server side task
    ... The current solution I used is to write the progress to a file on server ... and then use another popup window that use javascript to continuously ... display the content of the file and refresh within time intervals. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Reload Page Command
    ... my Progress page has six async calls and completion handlers. ... The Refresh page is continually refreshing every 5 seconds and is contained ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Matlab intermittent response to VC#
    ... Thanks for your reply.I saw the samples in help file.Well adding events will work only for COM components.I hope they will add this this feature with .NET components created by MATLAB Builder NE in coming releases. ... Programming with COM Components Created by the MATLAB Builder NE Product ... However the only problem is that i cant see the progress of the program .The user clicks OK button and then he has to wait for 15-30 minutes for the results. ... refresh in your browser (or fancier: ...
    (comp.soft-sys.matlab)
  • Re: Newbie: Form Load Control Issues...
    ... My issue is when the app runs, the progress ... >> bar fillin in, and the title bar of the form, but the rest of the form is ... > Call 'Application.DoEvents' and the form's or control's 'Refresh' method ...
    (microsoft.public.dotnet.languages.vb)