Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
How to restrict ultratexteditor to accept alphanumeric only?
posted

I want to restrict my ultratexteditor to accept alphanumeric characters only in c#. Please provide me help for the same.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Handle the KeyDown event and set e.Handled to true if the key is not alphanumeric. You will probably want to allow navigation keys, as well.

Reply Children