Home Forums WinForms controls Other WinForms controls ValidationProvider Eventhandlers

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #18364 |


    When the user encounters a validation error, the red exclamation icon pops up. I would like to add an additional emphasis to the control that generated the error, such as changing the background color to red (for instance, a wintextbox would have a background color of red and a foreground color of yellow). I’d also like to disable all other wintextboxes on the tab that contains the error-throwing control so the user is forced to fix the problem before proceeding. I can’t find any event handlers, though, that can listen for an error, so I’m lost on how to proceed.

    Could you tell me if I’m missing something and if no, if there is a workaround that you could recommend? This is such a great control – it’s made my coding SO much easier.

    Thanks again for your wonderful support.


    Imported from legacy forums. Posted by John (had 2604 views)

    Xceed Support
    Post count: 5658

    You could use the ValidatingText event on the TextBoxArea of the WinTextBox to change the BackColor of the Text area. You just need to add the validation to the event.

    Imported from legacy forums. Posted by CharlesB (had 3438 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.