Windows Mobile 6 - 禁用 WinForms 文本框上的自动完成功能
我正在制作一个 Windows Mobile 6 应用程序,我需要在表单上的文本框中禁用自动完成功能。信息被扫描到其中,因此我需要禁用自动完成/自动建议功能。我可以通过编程方式执行此操作还是需要操作注册表项? (这不是商业应用。)
I am making a windows mobile 6 app, where I need to disable autocomplete on the textboxes that I have on my form. Information is being scanned into them, therefore I need to disable the autocomplete/autosuggest feature. Can I do this programmatically or do I need to manipulate registry keys? (This is not a commercial application.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用此类,它将调用 SHSetInputContext 方法并禁用/启用控件的悬停事件。只需传递控件句柄即可。
例子:
Use this class, it will pinvoke the SHSetInputContext method and disable\enable the hover over events for the controls. Simply pass the controls Handle.
Example: