D
Developer
Hello,
I have a Systems.Windows.Forms.Form-based window. When I bring up a dialog
to modify the window's view and click OK, the dialog goes away, except the
part of the dialog that overlaps the window remains visible until the window
repaints.
Is there a way to fix this? If there is a lot of processing in calculating
the new view, it is rather unattractive to have part of the dialog still
visible for several seconds.
I can do this:
dlg.ShowDialog();
if (System.Windows.Forms.DialogResult.OK == dlg.DialogResult) {
// call update on the ApplicationForm
// call a method on the dialog to change the view
dlg.SetNewView();
}
dlg.Dispose();
This is unsatisfying, since the user of the dialog has to make two
additional calls; I'd like for all the processing to take place in the
dialog class when the user clicks OK.
TIA for any ideas...
I have a Systems.Windows.Forms.Form-based window. When I bring up a dialog
to modify the window's view and click OK, the dialog goes away, except the
part of the dialog that overlaps the window remains visible until the window
repaints.
Is there a way to fix this? If there is a lot of processing in calculating
the new view, it is rather unattractive to have part of the dialog still
visible for several seconds.
I can do this:
dlg.ShowDialog();
if (System.Windows.Forms.DialogResult.OK == dlg.DialogResult) {
// call update on the ApplicationForm
// call a method on the dialog to change the view
dlg.SetNewView();
}
dlg.Dispose();
This is unsatisfying, since the user of the dialog has to make two
additional calls; I'd like for all the processing to take place in the
dialog class when the user clicks OK.
TIA for any ideas...