WinForms programming - Modal and Non-Modal forms problem

后端 未结 5 1014
逝去的感伤
逝去的感伤 2020-12-17 03:25

I have a problem with modality of the forms under C#.NET. Let\'s say I have main form #0 (see the image below). This form represents main application form, where user can pe

5条回答
  •  无人及你
    2020-12-17 03:37

    Actually the answer is very simple. Try

    newForm.showDialog();
    

    This will open a new form, while the parent one is inaccessible.

提交回复
热议问题