Print Dialog

  • Thread starter Thread starter Lou Jackson
  • Start date Start date
L

Lou Jackson

I need to programmically close a PrintDialog form after it is displayed with
the "ShowDialog" method in case the user does not dismiss it himself. My app
needs to have it time out. How can this be done ?
 
Just before you call ShowDialog, use the BackgroundWorker to spawn a
thread to start a Timer which will call Close on the dialog when the
timer elapses. Make sure that WorkerSupportsCancellation is set to true
and that you check the CancellationPending property before you close the
form.

Does this make sense?
 
Back
Top