Share

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

Application Class, Autodesk.AutoCAD.ApplicationServices Namespace

Was this information helpful?