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


/ Published in: C#
Save to your folder(s)

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.