Wednesday, March 16, 2016

The calling thread cannot access this object because a different thread owns it.


On your do work

  private void worker_DoWork(object sender, DoWorkEventArgs e)  
     {  
       this.Dispatcher.Invoke((Action) (() =>  
       {  
         // Your code  
       }));  
     }  


C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...