This document is archived and information here might be outdated.  Recommended version.


INumberDialog.DoModal Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IN > INumberDialog Interface > INumberDialog.DoModal Method
ArcGIS Developer Help

INumberDialog.DoModal Method

Shows the dialog.

[Visual Basic .NET]
Public Function DoModal ( _
    ByVal Title As String, _
    ByVal initialValue As Double, _
    ByVal numDecs As Integer, _
    ByVal hWnd As Integer _
) As Boolean
[C#]
public bool DoModal (
    string Title,
    double initialValue,
    int numDecs,
    int hWnd
);

Product Availability

Available with ArcGIS Desktop.

Description

 

Title is a string that specifies the title of the dialog.

initialValue specifies the intial value to be displayed in the dialog.

numDecs specifies the number of decimal places to be used for the value.

hWnd specifies the window handle of the parent window. In most cases this will be the hWnd of the application.

 

Remarks

If a non-numeric value was entered or if the dialog was cancelled, the DoModal method returns False.

See Also

INumberDialog Interface

.NET Samples

Angle Angle shape constructor