Share via


VsUtilities.ShowMessageBoxEx Method

Shows a simple info message box.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Common.Host
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Shared Function ShowMessageBoxEx ( _
    title As String, _
    text As String, _
    helpKeyword As String, _
    buttons As MessageBoxButtons, _
    icon As MessageBoxIcon _
) As DialogResult
'Usage
Dim title As String
Dim text As String
Dim helpKeyword As String
Dim buttons As MessageBoxButtons
Dim icon As MessageBoxIcon
Dim returnValue As DialogResult

returnValue = VsUtilities.ShowMessageBoxEx(title, _
    text, helpKeyword, buttons, icon)
public static DialogResult ShowMessageBoxEx(
    string title,
    string text,
    string helpKeyword,
    MessageBoxButtons buttons,
    MessageBoxIcon icon
)
public:
static DialogResult ShowMessageBoxEx(
    String^ title, 
    String^ text, 
    String^ helpKeyword, 
    MessageBoxButtons buttons, 
    MessageBoxIcon icon
)
public static function ShowMessageBoxEx(
    title : String, 
    text : String, 
    helpKeyword : String, 
    buttons : MessageBoxButtons, 
    icon : MessageBoxIcon
) : DialogResult
static member ShowMessageBoxEx : 
        title:string * 
        text:string * 
        helpKeyword:string * 
        buttons:MessageBoxButtons * 
        icon:MessageBoxIcon -> DialogResult 

Parameters

  • title
    Type: System.String
    The title of the text box. If null, the VS default is used

Return Value

Type: System.Windows.Forms.DialogResult

.NET Framework Security

See Also

Reference

VsUtilities Class

VsUtilities Members

Microsoft.VisualStudio.Data.Schema.Project.Common.Host Namespace