LEADTOOLS Medical (Leadtools.Medical.Workstation assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ShowQuestion(Control,String,MessageBoxButtons) Method
See Also 
Leadtools.Medical.Workstation Namespace > WorkstationMessager Class > ShowQuestion Method : ShowQuestion(Control,String,MessageBoxButtons) Method




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
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
Display a question message to the user.

Syntax

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also