Online Help - Region 3: [CORE HL7 API Dialogs] |
The FormResults class has several shortcut methods for calling standard Windows Message Boxes. They Are:
FormResults.QuestionBox(string prompt, string title = "?")
Returns: DialogResult
Description: Calls a MessageBox with Yes / No buttons and a Question Icon.
Example Code:
DialogResult res = FormResults.QuestionBox("Are You Hungry", "Hunger Status");
if (res == DialogResult.Yes)
{
//Code
//Code
}
FormResults.MsgBox(string prompt, string title = "Information")
Returns: None (Void)
Description: Calls a generic MessageBox with an Ok button and no icon.
Example Code:
FormResults.MsgBox("Process has completed");
FormResults.InfoBox(string prompt, string title = "Information")
Returns: None (Void)
Description: Calls a generic MessageBox with an Ok button and the Information icon.
Example Code:
FormResults.InfoBox("Process has completed");
FormResults.ErrorMsgBox(string prompt, string title = "Error")
Returns: None (Void)
Description: Calls a generic MessageBox with an Ok button and the Error icon.
Example Code:
FormResults.ErrorMsgBox("Field #3 is required!");