vb.net 的 MaskedTextBox 中的属性相当于 vb6 的 Masked Edit 控件中的 Cliptext 属性

发布于 2024-09-05 12:02:12 字数 45 浏览 2 评论 0原文

我发现这个属性很有用,但在 vb.net 中找不到它的直接替代品。有吗?谢谢

I find this property useful but cannot find a direct replacement for it in vb.net. Is there one? Thanks

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

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

发布评论

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

评论(1

第几種人 2024-09-12 12:02:12

只需在从 Text 属性获取文本之前调用 maskedTextBox1.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals 即可。

Just call maskedTextBox1.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals before you get the text from the Text property.

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