private void acercaDeToolStripMenuItem_Click(object sender, EventArgs e) { try { frmAcercade ofrmAcercade = new frmAcercade(); ofrmAcercade.MdiParent = this; ofrmAcercade.Show(); } catch (Exception er) { StringBuilder msg = new StringBuilder(); msg.AppendFormat("\n\rMessage {0}\n", er.Message); msg.AppendFormat("Source {0}\n", er.Source); msg.AppendFormat("StackTrace {0}\n", er.StackTrace); _MyLogControlEventos.ErrorFormat("Error {0}", msg.ToString()); MessageBox.Show("Ocurrion un error, favor revisar \n" + er.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void tslAcercaDe_Click(object sender, EventArgs e) { frmAcercade acerca = new frmAcercade(); acerca.Show(); }