title: accessing datatable and variables inside Backgroundworker
body: <p>in my program i use a Datatable which is filled at loading of form. And i use backgroundworker to do some network operations. Inside doWork() of backgroundworker i need data from datatable and also object of a class that i created in loading of form. Data in datatable and class object is updated inside Dowork() and also this values from datatable and class object is updated in a listivew in ProgressChanged of backgroundworker.
  Both datatable and class object is declared global to Form1.
  But i read this is not thread safe.So how to use in correct to use it in thread safe way?</p>