Dockpanel无法以继承的形式工作 [英] Dockpanel not working in inherited form
本文介绍了Dockpanel无法以继承的形式工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在处理使用One Main Form的项目,其他表单通过DigitalRune.Windows.Docking Dock Panel从Main表单继承。现在我想通过此dockpanel转到下一个表单,该dockpanel也继承自Main Form
I m working on project in which I used One Main Form and other forms are inherited from Main form through DigitalRune.Windows.Docking Dock Panel . now I want to go to next form through this dockpanel which is also inherited from Main Form
private void btnNext_Click(object sender, EventArgs e)
{
if (fSecond == null)
{
fSecond = new frmSecondLecture();
fSecond.Show(dp, DigitalRune.Windows.Docking.DockState.Document);
}
else
{
fSecond.Activate();
}
我在上面的代码中设置了dock panel dp的名称。现在它在下一行显示dp错误
I set name of dock panel dp in above code. Now it show me error on dp in following line
fSecond.Show(dp, DigitalRune.Windows.Docking.DockState.Document);
它告诉我dp在当前上下文中不存在。我现在该怎么办?
It show me that dp is not exist in current context. What can I do now?
推荐答案
这篇关于Dockpanel无法以继承的形式工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文