public void DoLoad() { LoadForm testDialog = new LoadForm(); testDialog.ShowDialog(); storage_lbl.Text += " " + testDialog._Loc.Trim(); Draft_label.Text += " " + testDialog._Draft.Trim(); testDialog.Dispose(); }
public void DoLoad() { LoadForm testDialog = new LoadForm(); //Show testDialog as a modal dialog and determine if DialogResult = OK. //testDialog.CenterForm(); if (testDialog.ShowDialog() == DialogResult.OK) { // Read the contents of testDialog's TextBox. } else { } testDialog.Dispose(); }