using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class frmCustomers : Form { public frmCustomers() { InitializeComponent(); } private void ExitToolStripMenuItem_Click(object sender, EventArgs e) { this.Close(); } private void ToolStripButton2_Click(object sender, EventArgs e) { //The exit toolstrip button calls the Exit menu event handler ExitToolStripMenuItem_Click(sender, e); } private void Button1_Click(object sender, EventArgs e) { //Show a second form frmCustomerDetails f = new frmCustomerDetails(); //Show as a dialog box (modal) f.ShowDialog(); //Show as a owned form (non-modal) //this.AddOwnedForm(f); //f.Show(); } private void AboutToolStripMenuItem_Click(object sender, EventArgs e) { frmAbout f = new frmAbout(); f.Show(); } } }