title: Vb.net Difference between assigning properties directly and using invoke method
body: <p>Both of the lines below mentioned are working. it is used enabling or disabling a button inside a form. but question is why should we use form.Invoke method over direct method of assigning.</p>
  
  <p>Method 1:</p>
  
  <pre><code>frmPrint.Invoke(Sub() frmPrint.btnCancel.Enabled = False)
  </code></pre>
  
  <p>Method 2:</p>
  
  <pre><code>frmPrint.btnCancel.Enabled = False
  </code></pre>
  
  <p>Thanks,
  Sarathi </p>