title: Return information from another form to the main form
body: <p>I have a main form, <code>MainForm</code>, that opens up another form, <code>NewPasswordForm</code>. This happens once I click the AddButton on the main form. The code is below: </p>
  
  <pre><code>MainForm : Form {
      private void AddButton_Click(object sender, EventArgs e) {
          NewPasswordForm newPassword = new NewPasswordForm();
          using (NewPasswordForm form = new NewPasswordForm())
          {
              var result = form.ShowDialog();
              if (result == DialogResult.OK)
              {
                  Console.WriteLine("Made it work");
                  Login login = new Login();
                  //Need to get passed the login information from the NewPasswordForm
                  //so that I can add it to a list of Logins 
              }
          }            
      }
  }
  </code></pre>
  
  <p><code>NewPaswordForm</code> has four fields to fill out. Once I hit the add button in the <code>NewPasswordForm</code> I want </p>
  
  <pre><code>public partial class NewPasswordForm : Form {
      Login login = new Login();
      private void AddButton_Click(object sender, EventArgs e) {
          //Do stuff with the four fields to creat a Login
          //pass the login along with the DialogResult.OK below.
          this.DialogResult = DialogResult.OK;
      }
  </code></pre>
  
  <p>My question is how do I go about passing that information once I click the <code>AddButton</code> on the <code>NewPasswordForm</code>?</p>