Passing windows forum as control in pageview

1 posts, 0 answers
  1. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 29 Jul 2016 Link to this post

    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;
                radPageViewParent .Pages.Add(pageOne);
                radPageViewParent.SelectedPage = pageOne;

Back to Top