المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ErrorProvider SetError string constraint



C# Programming
10-07-2009, 08:22 PM
Hi,

I am facing an issue when using ErrorProvider's SetError method.
It seems the character "&" is not displayed in the error description string.


string tempStr = "Input can not contain the characters: &,^,!";
this.mainErrorProvider.SetError(this.inputTxtBox, tempStr);


The above code displays the tool tip consisting of the provided string but the "&" character seems to be converted to "space" character.

I am using Visual Studio 2008 with project targeted for .NET 3.0 Framework.
Any help would be appreciated.
Thanks,

sysdeamon.