D
DoB
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.
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.