- owner
- Type: System.Windows.Forms.Control The control displaying the message.
- message
- Type: System.String The question message which will be displayed.
Visual Basic (Declaration) | |
---|---|
Overloads Public Shared Function ShowQuestion( _ ByVal owner As Control, _ ByVal message As String, _ ByVal buttons As MessageBoxButtons _ ) As DialogResult |
Visual Basic (Usage) | Copy Code |
---|---|
Dim owner As Control Dim message As String Dim buttons As MessageBoxButtons Dim value As DialogResult value = WorkstationMessager.ShowQuestion(owner, message, buttons) |
C# | |
---|---|
public static DialogResult ShowQuestion( Control owner, string message, MessageBoxButtons buttons ) |
Managed Extensions for C++ | |
---|---|
public: static DialogResult ShowQuestion( Control* owner, string* message, MessageBoxButtons buttons ) |
C++/CLI | |
---|---|
public: static DialogResult ShowQuestion( Control^ owner, String^ message, 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.
- 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