How to disable the parent form when a child form is active?

前端 未结 13 2199
闹比i
闹比i 2020-12-12 23:26

How to disable a parent form when child form is active using c#?

13条回答
  •  隐瞒了意图╮
    2020-12-13 00:10

    You can also use MDIParent-child form. Set the child form's parent as MDI Parent

    Eg

    child.MdiParent = parentForm;
    child.Show();
    

    In this case just 1 form will be shown and the child forms will come inside the parent. Hope this helps

提交回复
热议问题