title: How to get values from a dialog form in VB.NET?
body: <p>I have a "frmOptions" form with a textbox named "txtMyTextValue" and a button named "btnSave" to save and close the form when it's clicked,</p>
  
  <p>then, I'm showing this dialog form "frmOptions" when a button "btnOptions" is clicked on the main form "frmMain", like this</p>
  
  <pre><code>Private Sub btnOptions_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOptions.Click
      ShowOptionsForm()
  End Sub
  
  Private Sub ShowOptionsForm()
      Dim options = New frmOptions
      options.ShowDialog()
  End Sub
  </code></pre>
  
  <p>How can I get in the main form "frmMain" the value inserted in the textbox "txtMyTextValue" when the "btnSave" is clicked?</p>