Xceed Toolkit Plus for WPF v4.6 Documentation
ShowMessageBox(String,String,MessageBoxButton,MessageBoxImage,MessageBoxResult) Method


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace > MessageBox Class > ShowMessageBox Method : ShowMessageBox(String,String,MessageBoxButton,MessageBoxImage,MessageBoxResult) Method
Displays this message box when embedded in a WindowContainer parent using the specified message, caption, button, icon, and default message box result.
Syntax
'Declaration
 
Public Overloads Sub ShowMessageBox( _
   ByVal messageText As String, _
   ByVal caption As String, _
   ByVal button As MessageBoxButton, _
   ByVal icon As MessageBoxImage, _
   ByVal defaultResult As MessageBoxResult _
) 
'Usage
 
Dim instance As MessageBox
Dim messageText As String
Dim caption As String
Dim button As MessageBoxButton
Dim icon As MessageBoxImage
Dim defaultResult As MessageBoxResult
 
instance.ShowMessageBox(messageText, caption, button, icon, defaultResult)
public void ShowMessageBox( 
   string messageText,
   string caption,
   MessageBoxButton button,
   MessageBoxImage icon,
   MessageBoxResult defaultResult
)

Parameters

messageText
caption
button
icon
defaultResult
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageBox Class
MessageBox Members
Overload List