private void barButtonItem36_ItemClick(object sender, ItemClickEventArgs e) { opentab = 3; UserInfo frm = null; if ((frm = (UserInfo)IsFormAlreadyOpen(typeof(UserInfo))) == null) { frm = new UserInfo(); frm.MdiParent = this; frm.Show(); } else { frm.Select(); } }