ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Framework.Dialogs Namespace / MessageBox Class / Show Method / Show(String,String) Method
The message.
The window caption.
Example

In This Topic
    Show(String,String) Method
    In This Topic
    Displays a message box that has a message and title bar caption; and that returns a result.
    Syntax
    Public Overloads Shared Function Show( _
       ByVal messageText As String, _
       ByVal caption As String _
    ) As MessageBoxResult

    Parameters

    messageText
    The message.
    caption
    The window caption.

    Return Value

    Specifies which message box button the user clicked.
    Example
    Display a Pro MessageBox
    {
      ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Some Message", "Some title", MessageBoxButton.YesNo, MessageBoxImage.Information, MessageBoxResult.Yes);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also