private void button1_Click_1(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Hide(); }