title: automatically click a button in a different form in vb.net
body: <p>I have 2 forms in my VB application, I am populating a textbox with some text which is working fine but i then want to automatically click a button in another form and run the actions for that button click</p>
  
  <p>i have this so far:</p>
  
  <pre><code>Form1.TextBox5.Text = "C:\folder\file1.csv"
  Form1.Button8.PerformClick()
  </code></pre>
  
  <p>but its not clicking the button and performing the actions for <code>Button8</code> on <code>Form1</code></p>
  
  <p>How can i make my other form click Button8 on Form1 and run its actions/events?</p>