This is a migrated thread and some comments may be shown as answers.
Passing windows forum as control in pageview
0 Answers 12 Views
This is a migrated thread and some comments may be shown as answers.
Shakti SIngh Dulawat
Top achievements
Rank 1
Shakti SIngh Dulawat asked on 29 Jul 2016, 11:30 AM

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;
           
           
        }

No answers yet. Maybe you can help?

Asked by
Shakti SIngh Dulawat
Top achievements
Rank 1
Share this question
or