private void button1_MouseClick(object sender, MouseEventArgs e) { try { addcompany = new AddCompany(); addcompany.btn_add.MouseClick += new MouseEventHandler(btn_add_MouseClick); addcompany.Show(); } catch (Exception ex) { logWriter(ex.ToString()); } }