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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top