void theDialog_FormClosing(object sender, FormClosingEventArgs e)
 {
     e.Cancel = true;
     theDialog.Hide();
 }