Hi I'm trying to add a form to a tabpage and have the following code that will add the form but the controls on the form do not show any help would be great!!!
Code:Form1 f = new Form1(); f.TopLevel=false; tabPage3.Controls.Add(f); f.Dock = DockStyle.Fill; f.Anchor = AnchorStyles.Bottom|AnchorStyles.Left|AnchorStyles.Right| AnchorStyles.Top; f.Show();




Reply With Quote