Method MessageBox
MessageBox(String, String, NumberOfMessageBoxButtons, String)
The user can use this to pop up some worning or error messages. The Message box may contain one or two or three buttons
Declaration
public virtual bool MessageBox(string Heading, string Message, NumberOfMessageBoxButtons NoOfButtons, string ButtonStrings)
Parameters
Type | Name | Description |
---|---|---|
System.String | Heading | This parameter is a string which will be disaplayed as the heading of the message box |
System.String | Message | This parameter is the actual message to be displayed |
NumberOfMessageBoxButtons | NoOfButtons | This paremeter defines how many buttons are to be displayed, the max value is three |
System.String | ButtonStrings | This parmeter holds the strings to be displayed on the buttons, they are comma seperated string for buttons more than 1. eg ok,cancel - ok is displaed on first button and cancel on third |
Returns
Type | Description |
---|---|
System.Boolean | bool |