Version

Show(String,String,MessageBoxButtons,MessageBoxIcon,MessageBoxDefaultButton,Boolean) Method

Displays an UltraMessageBox
Syntax
'Declaration
 
Public Overloads Shared Function Show( _
   ByVal text As String, _
   ByVal caption As String, _
   ByVal buttons As MessageBoxButtons, _
   ByVal icon As MessageBoxIcon, _
   ByVal defaultButton As MessageBoxDefaultButton, _
   ByVal displayHelpButton As Boolean _
) As DialogResult

Parameters

text
The text to be displayed in the content area of the UltraMessageBox.
caption
The text to be displayed in the caption of the UltraMessageBox
buttons
The buttons to be displayed on the UltraMessageBox
icon
The system icon to be displayed in the content area of the UltraMessageBox
defaultButton
The default active button
displayHelpButton
Indicates if the Help buttons should be displayed

Return Value

Returns the DialogResult of the shown UltraMessageBox
Example
The following code demonstrates using the Show() method to show the UltraMessageBox with the Help button.

Private Sub DisplayMessage(ByVal owner As IWin32Window, ByVal message As String, ByVal caption As String, ByVal buttons As MessageBoxButtons, ByVal icon As MessageBoxIcon, ByVal defaultButton As MessageBoxDefaultButton) 
    ' Show the help button on the UltraMessageBox 
    UltraMessageBoxManager.Show(message, caption, buttons, icon, defaultButton, True) 
End Sub
private void DisplayMessage(IWin32Window owner, string message, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton)
{
    // Show the help button on the UltraMessageBox
    UltraMessageBoxManager.Show(message, caption, buttons, icon, defaultButton, true);
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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