Autodesk.AutoCAD.ApplicationServices Namespace > Application Class > Application Methods > ShowModalDialog Method > ShowModalDialog(Form) Method
Application.ShowModalDialog(Form) Method
Description

Shows a modal dialog. This method should be used instead of Form.ShowDialog, which may lead to unexpected behavior.

Visual Basic
Public static Function ShowModalDialog(
    formToShow As Form
) As System.Windows.Forms.DialogResult
C#
public static System.Windows.Forms.DialogResult ShowModalDialog(
    Form formToShow
);
Parameters
Parameters 
Description 
Form formToShow 
Input the form to be shown. 
Links
   Comments?