Refreshing modeless dialogs?
- From: "DoB" <DoB@xxxxxxx>
- Date: Thu, 20 Nov 2008 11:58:50 +0100
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.
.
- Follow-Ups:
- Re: Refreshing modeless dialogs?
- From: Peter Duniho
- Re: Refreshing modeless dialogs?
- Prev by Date: Re: Windows Application: Drawing control over boundaries?
- Next by Date: Re: Replace character
- Previous by thread: ok ok , anyone know anything on this tough question?
- Next by thread: Re: Refreshing modeless dialogs?
- Index(es):
Relevant Pages
|