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

前端 未结 13 2195
闹比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:05

    For me this work for example here what happen is the main menu will be disabled when you open the registration form.

     frmUserRegistration frmMainMenu = new frmUserRegistration();
        frmMainMenu.ShowDialog(this);
    

提交回复
热议问题