displays the specified .NET form in the foreground and does not return until the form window is closed.

DoNETModal[form, expr]
evaluates expr just before the form is closed and returns the result.


  • To use DoNETModal, you first need to load .NET/Link using Needs["NETLink`"].
  • The following option can be given:
  • FormStartPositionCenterthe position in which the window will be displayed
  • Typically, DoNETModal is used to implement a modal dialog box that needs to interact with Mathematica while the dialog box is active, or one that returns a result to Mathematica when it is dismissed.
New to Mathematica? Find your learning path »
Have a question? Ask support »