MDI Parent Form Problem setting Parent

后端 未结 4 1698
傲寒
傲寒 2021-01-21 08:24

I am using a MDI parent form that has a childs and they show up very well when they are called up by this parent and i use to intensiate child form as

ChildForm          


        
4条回答
  •  失恋的感觉
    2021-01-21 09:03

    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.

提交回复
热议问题