ArcGIS Pro 2.9 API Reference Guide
Show(Window,String) Method

ArcGIS.Desktop.Framework.Dialogs Namespace > MessageBox Class > Show Method : Show(Window,String) Method
The parent window.
The message.
Displays a message box in front of the specified window. The message box displays a message and returns a result.
Syntax
Public Overloads Shared Function Show( _
   ByVal owner As Window, _
   ByVal messageText As String _
) As MessageBoxResult

Parameters

owner
The parent window.
messageText
The message.

Return Value

Specifies which message box button the user clicked.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

MessageBox Class
MessageBox Members
Overload List