- owner
- Type: System.Windows.Forms.Control The control displaying the message.
- message
- Type: System.String The question message which will be displayed.
- icon
- Type: System.Windows.Forms.MessageBoxIcon The icon which will be displayed in the System.Windows.Forms.MessageBox
| Visual Basic (Declaration) | |
|---|---|
Overloads Public Shared Function ShowQuestion( _ ByVal owner As Control, _ ByVal message As String, _ ByVal icon As MessageBoxIcon, _ ByVal buttons As MessageBoxButtons _ ) As DialogResult | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim owner As Control Dim message As String Dim icon As MessageBoxIcon Dim buttons As MessageBoxButtons Dim value As DialogResult value = WorkstationMessager.ShowQuestion(owner, message, icon, buttons) | |
| C# | |
|---|---|
public static DialogResult ShowQuestion( Control owner, string message, MessageBoxIcon icon, MessageBoxButtons buttons ) | |
| Managed Extensions for C++ | |
|---|---|
public: static DialogResult ShowQuestion( Control* owner, string* message, MessageBoxIcon icon, MessageBoxButtons buttons ) | |
| C++/CLI | |
|---|---|
public: static DialogResult ShowQuestion( Control^ owner, String^ message, MessageBoxIcon icon, MessageBoxButtons buttons ) | |
Parameters
- owner
- Type: System.Windows.Forms.Control The control displaying the message.
- message
- Type: System.String The question message which will be displayed.
- icon
- Type: System.Windows.Forms.MessageBoxIcon The icon which will be displayed in the System.Windows.Forms.MessageBox
- buttons
- Type: System.Windows.Forms.MessageBoxButtons The buttons which will be displayed in the System.Windows.Forms.MessageBox
Return Value
Type: System.Windows.Forms.DialogResult The result selected by the user for the question.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code