title: How to safely access a global variable from a backgroundworker thread vb.net
body: <p>I've got a backgroundworker implemented in my program and it's accessing a global variable decalred outside the thread.  IT causes no errors but setting the checkillegalstring property and there are cross thread exceptions all over the place.  I found out that it's because it's using the global variable I've declared previously.</p>
  
  <p>I can't seem to find anywhere that I can use a global variable inside my backgroundworker thread, is this possible to do?</p>