private void button8_Click(object sender, EventArgs e) { DrillingShaftForm frm = new DrillingShaftForm(); if (frm.ShowDialog(this) == DialogResult.OK) { } }