ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Framework.Dialogs Namespace / MessageBox Class / Show Method / Show(Boolean,String,Window,String,String,MessageBoxButton,MessageBoxImage,MessageBoxResult,String,String,String) Method
Example Version

Show(Boolean,String,Window,String,String,MessageBoxButton,MessageBoxImage,MessageBoxResult,String,String,String) Method
Displays a message box in front of the specified window. The message box displays a checkbox where users may opt to disable its appearance in the future. The message box also displays a message, title bar caption, button, and icon. The caller may also specify a default message box result. On return, the ref Boolean argument will be set to true if the checkbox was checked by the user.
Syntax

Parameters

noRemind
checkBoxMessage
owner
messageText
caption
button
icon
defaultResult
moreInfoText
helpContextID
helpLinkText
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, Windows 10

ArcGIS Pro version: 3 or higher.
See Also