本文介绍了如何在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
推荐答案
这篇关于如何在xtratabcontrol devexpress中打开表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!