Return to Snippet

Revision: 18743
at October 7, 2009 04:47 by sysdeamon


Initial Code
// "&&&" are displayed as "&" in error provider tool-tip
string tempStr = "Some Name can not contain the characters: &&&,á,é,í,ó"; 
this.mainErrorProvider.SetError(this.someNameTxtBox, tempStr);

Initial URL

                                

Initial Description
To display "&" character within the string used as error descriptor in ErrorProvidor component in .NET use "&&&" so that it displays as a single "&".
More detail at: 
http://www.codeproject.com/Messages/3225091/ErrorProvider-SetError-string-constraint.aspx

Initial Title
How to display "&" character in error description string for ErrorProvider

Initial Tags
Net

Initial Language
C#