private void okButton_Click(object sender, EventArgs e) { AboutBox about = new AboutBox(); if (DialogResult == DialogResult.Cancel) { about.Dispose(); } }
private void About_Click(object sender, EventArgs e) { AboutBox about = new AboutBox(); about.ShowDialog(); }