C1TextBox.CharCategory = CharCategory.Symbol

Posted by: ivan.stanojkovski on 13 June 2025, 5:44 am EST

    • Post Options:
    • Link

    Posted 13 June 2025, 5:44 am EST

    Hi,

    When using the C1TextBox control and I set it to only allow symbols, for example:

    C1TextBox.CharCategory = CharCategory.Symbol

    Why doesn’t it allow me to enter the minus sign “-”? It works fine for all other characters, except for the minus sign?

    Is there a way to configure it so that when CharCategory.Symbol is set, it also accepts the minus sign?

    Thank you in advance for your assistance!

  • Posted 16 June 2025, 6:22 am EST

    Hi Ivan,

    We could observe that the CharCategory.Symbol does not allow the minus sign (“-”). However, you can easily work around this by handling the KeyDown event and manually appending the minus sign to the text.

    Please refer to the attached sample project - C1TextBoxSymbolCategory.zip

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels