.NET Compact Framework - modal form without ShowDialog

Is there a way to show a modal form without calling the ShowDialog method? By showing a modal form, I mean that the form overlaps the current form and prevents the user from entering the form. The form to be displayed is a MessageBox style form that is not full-screen.

thank

Dominic

+3
source share
2 answers

I would suggest that you can set the "dialog" form to stay on top (TopMost property) and then disable the main form to prevent input.

, , .. , .

- , ShowDialog?

+1

:

    MyForm frm = new MyForm();  // this would be your modeless dialog
    frm->show(this);           // "this" being the instance that invokes it.
0

Source: https://habr.com/ru/post/1775375/


All Articles