You must Sign In to post a response.
  • Category: .NET

    I am creating windows application using mdi parent form but my mdi parent form error.

    I am creating windows application using mdi parent form but my mdi parent form error.

    Form cannot be both an MDI child and MDI parent.
    Parameter name: value


    How to Solve above error........
  • #765962
    The error message is more descriptive, either you create form as MDI parent or MDI child.
    To create a child from another child, just write it like this:

    ChildForm sibling = new ChildForm();
    sibling.MdiParent = this.MdiParent;
    sibling.Show();

    Or fire a custom event that the parent can respond to.
    Please post your code so that we can help you better.

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]


  • Sign In to post your comments