private void btnProduct_Click(object sender, EventArgs e) { using (var pq = new FrmScanDetail()) { pq.ShowDialog(); } }