0

I'd like to display a red border around my masked text box when the user enters incorrect values, but there isn't a border setting for a masked text box. Does anyone have any workarounds for this?

As always, thanks for any help.

1 Answer 1

1

Put the textbox inside a panel and set the border of the panel, and set the Dock of the textbox to Fill.

Sign up to request clarification or add additional context in comments.

4 Comments

I was hoping for something a little less of a hack than that, but I appreciate the input regardless. I may have to do this if there's no other way.
If you have a lot of controls like that, you can make a user control, that simply exposes all the attributes you want.
Could you be a little bit more specific? I'm not too familiar with these data types. You have a link I can do some reading at perhaps?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.