Spread Windows Forms 12.0 Product Documentation
Message Property (MessageBoxNotify)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > MessageBoxNotify Class : Message Property
Gets or sets the message.
Syntax
'Declaration
 
Public Property Message As String
'Usage
 
Dim instance As MessageBoxNotify
Dim value As String
 
instance.Message = value
 
value = instance.Message
public string Message {get; set;}

Property Value

The message. The default is String.Empty.
Remarks
If this property is String.Empty or a null reference (Nothing in Visual Basic), the message will be the ValidateInfo value.
Example
This example displays a message box for invalid values.
//Type one of the candidate items in cell 1,1 to see the error notification
FarPoint.Win.Spread.MessageBoxNotify cnotify = new FarPoint.Win.Spread.MessageBoxNotify();
cnotify.Caption = "Error";
cnotify.Message = "Invalid";
cnotify.Icon = MessageBoxIcon.Question;
FarPoint.Win.Spread.ExcludeListValidator excludelist = new FarPoint.Win.Spread.ExcludeListValidator();
excludelist.Candidates = new string[] { "Bird", "Deer", "Squirrel", "Lizard" };
excludelist.Actions.Add(cnotify);
fpSpread1.Sheets[0].AddValidators(new FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), excludelist);
'Type one of the candidate items in cell 1,1 to see the error notification
Dim cnotify As New FarPoint.Win.Spread.MessageBoxNotify()
cnotify.Caption = "Error"
cnotify.Message = "Invalid"
cnotify.Icon = MessageBoxIcon.Question
Dim excludelist As New FarPoint.Win.Spread.ExcludeListValidator()
excludelist.Candidates = New String() {"Bird", "Deer", "Squirrel", "Lizard"}
excludelist.Actions.Add(cnotify)
FpSpread1.Sheets(0).AddValidators(New FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), excludelist)
See Also

Reference

MessageBoxNotify Class
MessageBoxNotify Members