' Remove all currency symbols from the Special Characters drop down. Me.WebHtmlEditor1.SpecialCharacterList.Remove( "€") Me.WebHtmlEditor1.SpecialCharacterList.Remove( "£") Me.WebHtmlEditor1.SpecialCharacterList.Remove( "¥")
WebHtmlEditor™ lets end users enter special characters that are uncommon on most keyboards by selecting them from a drop-down list without having to know their esoteric encoding. The WebHtmlEditor control provides a starter list containing some common special characters, but your application can remove any pre-existing items from the drop-down list.
In the example code below, you will remove the currency symbols that are contained in the Special Character List by default.
In the Page_Load event handler of your Web form, remove any HTML character entity references for special characters that you do not want to be available in the Special Characters Toolbar drop-down list.
In Visual Basic:
' Remove all currency symbols from the Special Characters drop down. Me.WebHtmlEditor1.SpecialCharacterList.Remove( "€") Me.WebHtmlEditor1.SpecialCharacterList.Remove( "£") Me.WebHtmlEditor1.SpecialCharacterList.Remove( "¥")
In C#:
// Remove all currency symbols from the Special Characters drop down. this.WebHtmlEditor1.SpecialCharacterList.Remove( "€"); this.WebHtmlEditor1.SpecialCharacterList.Remove( "£"); this.WebHtmlEditor1.SpecialCharacterList.Remove( "¥");