如何在xtratabcontrol devexpress中打开表单 [英] How to open forms in xtratabcontrol devexpress
本文介绍了如何在xtratabcontrol devexpress中打开表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我试图在tabcontrol中打开我的子表单,我把它放在主要(父)表单中,例如像往常一样中心屏幕。
这是我试过的代码:
Hello
I am trying to open my child forms in tabcontrol that I have put it in main (parent) form insted of for example "center screen" as usual.
here is my code that I have tried :
private void MainForm_Load(object sender, EventArgs e)
{
AddDocumentManager();
for (int i = 0; i < 3; i++)
{
AddChildForm();
}
}
void AddDocumentManager()
{
DocumentManager manager = new DocumentManager();
manager.MdiParent = this;
manager.View = new TabbedView();
}
int count;
void AddChildForm()
{
Form childForm = new Form();
childForm.Text = "Child Form " + (++count).ToString();
SimpleButton btn = new SimpleButton();
btn.Text = "Button " + count.ToString();
btn.Parent = childForm;
childForm.MdiParent = this;
childForm.Show();
}
预付结转
我尝试了什么:
我在Devexpess文档中尝试了上面的代码和一些类似的代码,但找不到答案
Thanks in Advance
What I have tried:
I have tried code above and some similar code in Devexpess documents, but could not find the answer
推荐答案
请按照以下步骤操作: Q537413 - 从中创建标签页另一种形式| DevExpress支持中心 [ ^ ]。它包含完整的项目。
对于DocumentManager
我发现只有这个: T134798 - 如何在XtraTabControl的选项卡中插入表单DevExpress支持中心 [ ^ ]
我建议在他们的网站上发布有关DevExpress控件的更多问题。
Follow this: Q537413 - Create tab page from another form | DevExpress Support Center[^]. It contains complete project.
ForDocumentManager
i've found only this: T134798 - How to insert a form inside a tab of XtraTabControl | DevExpress Support Center[^]
I'd suggest to post further questions about DevExpress's controls on their site.
这篇关于如何在xtratabcontrol devexpress中打开表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文