frmPurchaseEntry PurchaseEntry = new frmPurchaseEntry;PurchaseEntry.MdiParent = this;PurchaseEntry.TabCtrl = tabControl1; TabPage tpPurchaseEntry = new TabPage();tpPurchaseEntry.Parent = tabControl1; tpPurchaseEntry.Text = "Purchase Entry";tpPurchaseEntry.Show(); PurchaseEntry.TabPag = tpPurchaseEntry;PurchaseEntry.Show();tabControl1.SelectedTab = tpPurchaseEntry;