var tablePage = new XtraTabPage();
//这是我的一些数据start
tablePage.Text = dataName;
tablePage.Name = "tablePage" + Guid.NewGuid();
tablePage.ImageIndex = 6;
xTraTableControl.TabPages.Add(tablePage); //执行到此处报错..父级别控件之类的东东
xTraTableControl.SelectedTabPage = tablePage;
//end
// 传参数
var xmlContainerCtrl = new XmlContainerControl(dataResource, 0, 50, 50,
filePath, true, SaveStatus, _treePower, 2);
//初始化模板容器信息
xmlContainerCtrl.Dock = DockStyle.Fill;
xmlContainerCtrl.Enabled = true;
tablePage.Controls.Add(xmlContainerCtrl);
|