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


IColorBrowser.DoModal Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Framework)  

IColorBrowser.DoModal Method

Show the browser.

[Visual Basic .NET]
Public Function DoModal ( _
    ByVal hWnd As Integer _
) As Boolean
[C#]
public bool DoModal (
    int hWnd
);

Product Availability

Available with ArcGIS Desktop.

Remarks

To display the dialog box, you should call the DoModal method. The method takes one parameter, a handle to the Application object of the ArcMap framework.

The DoModal method returns a Boolean�you should check the result to determine if the user intended to cancel the action (the result is False) or click OK (the result is True).

See Also

IColorBrowser Interface

.NET Samples

Use an AlgorithmicColorRamp to color a ClassBreaksRenderer (Code Files: frmAlgorithmicColorRamp)