private void dLPToolStripMenuItem_Click(object sender, EventArgs e) { try { DLP dlp = new DLP(); dlp.ShowDialog(); } catch { MessageBox.Show("Something went wrong, try again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }