This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > IColorBrowser Interface > IColorBrowser.DoModal Method (ArcObjects .NET 10.4 SDK) |
Show the browser.
[Visual Basic .NET] Public Function DoModal ( _ ByVal hWnd As Integer _ ) As Boolean
[C#] public bool DoModal ( int hWnd );
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).