Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

MessageBox methods

Updated on October 19, 2022

Use the MessageBox methods to display a message to the user and return a result.

Methods

MethodDescriptionParametersResult Type
ShowInputBoxDisplays a text message or a question to a user. The text message that is displayed is the string argument that you provide. The overload methods allow you to select from the following parameters:
  • string message
  • string message, string caption
  • string message, string caption, buttons
  • string message, string caption, buttons, icon
  • string message, string caption, buttons, icon, defaultButton
  • string message, string caption, buttons, icon, defaultButton, options
  • string message, string caption, buttons, icon, defaultButton, options, Window owner
See list in Description columnDialogResult
ShowMessageBoxDisplays a message box and returns a result.stringDialogResult
ShowMessageBox (String, caption) Displays a message box that has a message and title bar caption; and that returns a result.String, captionDialogResult
ShowMessageBox (String, caption, buttons) Displays a message box that has a message, title bar caption, and button; and that returns a result.String, caption, buttonsDialogResult
ShowMessageBox (String, caption, buttons, icon) Displays a message box that has a message, title bar caption, button, and icon; and that returns a result.String, caption, buttons, iconDialogResult
ShowMessageBox (String, caption, buttons, icon) Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result and returns a result.String, caption, buttons, iconDialogResult
ShowMessageBox (String, caption, buttons, icon, options) Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result, complies with the specified options, and returns a result.String, caption, buttons, icon, optionsDialogResult
ShowMessageBox (String, caption, buttons, icon, options, Win32 owner) Displays a message box that has a message, title bar caption, button, and icon; and that accepts a default message box result, complies with the specified options, has a Win32 owner, and returns a result.String, caption, buttons, icon, options, Win32 ownerDialogResult

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us