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


evaluates expr just before the form is closed and returns the result.

Details and Options

  • 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 the Wolfram Language while the dialog box is active, or one that returns a result to the Wolfram Language when it is dismissed.