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
- text
Type: System.String
The message for the text box
- helpKeyword
Type: System.String
The help keyword
- buttons
Type: System.Windows.Forms.MessageBoxButtons
Buttons to show in the dialog box
- icon
Type: System.Windows.Forms.MessageBoxIcon
Icon to show in the dialog box
Return Value
Type: System.Windows.Forms.DialogResult
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Common.Host Namespace