Share

Application.ShowModalWindow(IntPtr, Uri) Method

Description

Launches a modal dialog with the specified URI. The window hosts a browser window which displays the html page.

Visual Basic

Public static Function ShowModalWindow(
    owner As IntPtr, 
    htmlPage As Uri
) As bool

Parameters

Parameters Description
IntPtr owner Owner Window.
Uri htmlPage URI of the page to be loaded into the modal window.

Returns

True - OK button was clicked.

False - CANCEL button was clicked or invalid URI is specified.

Remarks

Always persists the size and position of the dialog upon exit.

Example (C#)

Uri uri = new Uri("https://anywebsite.com");
IntPtr owner = Application.MainWindow.Handle;
bool rc = Autodesk.AutoCAD.ApplicationServices.Application.ShowModalWindow(owner, uri);

Links

Application Class, Autodesk.AutoCAD.ApplicationServices Namespace

Was this information helpful?