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
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?
:
MyForm frm = new MyForm(); // this would be your modeless dialog frm->show(this); // "this" being the instance that invokes it.
Source: https://habr.com/ru/post/1775375/More articles:Best practice for repurposing CSS - cssIs Tinperl dead? - perlScrap structured information from hundreds of Word documents? - databaseThe fastest way to convert strings to XML - optimizationHow to set the default value for "save-as" for an image generated in PHP? - phpHow to represent instance instances in UML? - umlHow can I manipulate the contents of an extjs panel as I can a DOM element? - extjsImplementing PHP Coding Standards - coding-styleImplement JVM workflow distribution and multicore processors - javaCreating a SOAP Service Using C # - httpAll Articles