private void settingsToolStripMenuItem_Click(object sender, EventArgs e) { preferences obj = new preferences(); obj.Show(); }
/** * funcion to open * preferences form on click */ private void icon_preferences_Click(object sender, EventArgs e) { try { prefObj.Show(); } catch (Exception ex) { prefObj = new preferences(); prefObj.Show(); } }