private void showARList() { //Create Only One Instance of Form frmManageAR f = frmManageAR.CreateInstance(); f.MdiParent = this; f.dataGrid.Width = Width - (imgAd.Width + 35); showManaged(f); showToolbars(new bool[] { false, false, false, false, true }); }
//this will create a single instance of form public static frmManageAR CreateInstance() { frmManageAR f; if (thisform == null) { thisform = new frmManageAR(); } f = (frmManageAR)thisform; return(f); }