Im having some trouble adding a spreadsheet to my RadPageViewPage since the spreadsheet requires to be on a thread. This still gives me 'Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.'.
Is there anyone that could explain what im doing wrong here? Thanks.
Edit. Updated the code a bit and this gives me that it requires to be on the STA thread. Its something im not understanding with these threadings in c#.
I have 4 tabs in a PageView Strip mode where 2nd tabs visibility is false that's why empty space found in continuity of 4 tabs.
how can i set property to auto arrange tabs on page load in c# windows form.
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;
}