C# 蒙版文本框边框

发布于 2024-10-02 07:35:03 字数 83 浏览 0 评论 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我不会写诗 2024-10-09 07:35:03

将文本框放入面板中并设置面板边框,并将文本框的 Dock 设置为 Fill。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文