title: How can I return a value from a ShowDialog window?
body: <p>frmMain</p>
  
  <pre><code>DoSomething()
  My.Forms.frmMessage.ShowDialog(Me)
  If AcceptButtonClicked Then
  ' Do Code
  DoCode()
  Else
  ' Cancel Button Pressed
  DoOtherCode()
  End If
  DoMore()
  </code></pre>
  
  <p>frmMessage</p>
  
  <pre><code>My.Forms.frmMain.AcceptButtonClicked = True
  </code></pre>
  
  <p>Is there a way to pass a value from a Dialog window back to a paused thread on the main window? I want to know if they pressed the Ok or Cancel Button after filling out a form that pops up.</p>