On Tue, Aug 24, 2010 at 12:47 PM, Cerebrus <[email protected]> wrote:
> One word: Multithreading. It is the only way to keep your UI
> responsive during long running processes.
>
> If you're new to Multithreading, use the BackgroundWorker class (.NET
> 2+).
-----------------


I thought he wanted us to find his mistake so he cold submit the
project for semester end.

Never saw a need to put in multi threading for picking a printer.

I was thinking more like :
private void button1_Click(object sender, System.EventArgs e)
{
   PrintDialog printDialog1 = new PrintDialog();
   printDialog1.Document = printDocument1;
   DialogResult result = printDialog1.ShowDialog();
   if (result == DialogResult.OK)
   {
      // Waste Trees Here;
   }
}

Reply via email to