如何将自动完成添加到屏蔽文本框?

发布于 2024-07-10 23:35:19 字数 145 浏览 3 评论 0原文

在.Net中,有MaskedTextBox和具有自动完成成员的TextBox。 自动完成似乎不适用于 MaskedTextBox。 如何让 MaskedTextBox 与自动完成功能一起使用?

我正在尝试在 Visual Basic 中执行此操作。

In .Net, there is the MaskedTextBox and there is the TextBox which has an autocomplete member. Autocomplete doesn't seem to be available for MaskedTextBox. How do you get MaskedTextBox working with autocomplete?

I am attempting to do this in Visual Basic.

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

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

发布评论

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

评论(1

一张白纸 2024-07-17 23:35:19

您唯一的选择是创建一个继承自 MastedTextBox 或 TextBox 的自定义控件并添加缺少的行为。

或者创建一个封装 TextBox 但添加您的功能的控件。

我会采用一个文本框并添加屏蔽,因为这比添加自动完成更容易。

Your only option is to create a custom control which inherits from MastedTextBox or TextBox and add the missing behavior.

Or to create a control which encapsulates a TextBox but adds your functionality.

I would take a textbox and add the masking, because thats easier than adding the auto-complete.

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