OogaBooga
OogaBooga

Reputation: 495

C# Masked Text Box Border

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.

Upvotes: 0

Views: 732

Answers (1)

Mor Shemesh
Mor Shemesh

Reputation: 2897

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

Upvotes: 1

Related Questions