LEADTOOLS Medical (Leadtools.Medical.Workstation assembly)
LEAD Technologies, Inc

ShowQuestion(Control,String,MessageBoxIcon,MessageBoxButtons) Method







Type: System.Windows.Forms.Control The control displaying the message.
Type: System.String The question message which will be displayed.
Type: System.Windows.Forms.MessageBoxIcon The icon which will be displayed in the System.Windows.Forms.MessageBox
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
public static DialogResult ShowQuestion( 
   Control owner,
   string message,
   MessageBoxIcon icon,
   MessageBoxButtons buttons
)
'Declaration
 
Public Overloads Shared Function ShowQuestion( _
   ByVal owner As Control, _
   ByVal message As String, _
   ByVal icon As MessageBoxIcon, _
   ByVal buttons As MessageBoxButtons _
) As DialogResult
'Usage
 
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)
public static DialogResult ShowQuestion( 
   Control owner,
   string message,
   MessageBoxIcon icon,
   MessageBoxButtons buttons
)
 function Leadtools.Medical.Workstation.WorkstationMessager.ShowQuestion(Control,String,MessageBoxIcon,MessageBoxButtons)( 
   owner ,
   message ,
   icon ,
   buttons 
)
public: static DialogResult ShowQuestion( 
   Control* owner,
   string* message,
   MessageBoxIcon icon,
   MessageBoxButtons buttons
) 
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WorkstationMessager Class
WorkstationMessager Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.