NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Creating Dialog Boxes

Dialog boxes are displayed modally to prevent users from performing tasks outside of the dialog box. For more information on modal and modeless dialog boxes, see Displaying Modal and Modeless Forms 

To create a dialog box at run time

  1. Create a class that inherits from Form to your project
  2. Set the BorderStyle property to FixedDialog.
  3. Customize the appearance of the form as needed.
  4. Set the ControlBox, MinimizeBox, and MaximizeBox properties to False.

    Dialog boxes do not usually include menu bars, window scroll bars, Minimize and Maximize buttons, status bars, or sizable borders.

  5. Customize event procedures using your code editor. For more information, see Closing Dialog Boxes and Retaining User Input.

Additionally, the NGWS frameworks have a number of pre-formatted dialog boxes that you can implement for basic tasks within your application that involve user input (opening files, printing files, saving files). For more information, see Dialog Box Controls.

See Also

Dialog Boxes | Displaying Dialog Boxes for Win Forms | Closing Dialog Boxes and Retaining User Input | Retrieving the Result for Dialog Boxes | Retrieving Dialog Box Information Selectively Using Multiple Properties | Retrieving Dialog Box Information Collectively Using Objects | Retrieving Information from the Parent Form of a Dialog Box