Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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
C#
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();
                }

I set name of dock panel dp in above code. Now it show me error on dp in following line
C#
fSecond.Show(dp, DigitalRune.Windows.Docking.DockState.Document);

It show me that dp is not exist in current context. What can I do now?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900