Dear friends,
I am trying to add run time page in pageview things working well but when I am trying to add windows forum as control it will not show, if I convert it to user control it show in pageview any specific reason behind it?
CustomerMain customerMain = new CustomerMain(); // this one is windows forum if I change it to user control it work fine
customerMain.SelectedCustomerId = CustomerID;
customerMain.Dock = DockStyle.Fill;
customerMain.TopLevel = false;
((Forms.Test.TestCustomerForum)this.ParentForm).ShowParentTab(customerMain, "[" + customer._Owner + "]", CustomerID);
public void ShowParentTab(Control form, string title,int customerID)
{
RadPageViewPage pageOne = new RadPageViewPage();
pageOne.Text = title;
string pageName = customerID.ToString()+ title.Replace(" ","").Trim();
pageOne.Name = pageName;
pageOne.Controls.Add(form);
radPageViewParent .Pages.Add(pageOne);
radPageViewParent.SelectedPage = pageOne;
}