简体   繁体   English

.NET CF 3.5 TextBox-禁用字典

[英].NET CF 3.5 TextBox - disabling dictionary

How to disable TextBox dictionary? 如何禁用TextBox词典? While inputting characters to TextBox it displays all previously entered strings which I can't accept in my application. 在向TextBox输入字符时,它会显示所有先前输入的字符串,这些字符串我在应用程序中无法接受。

Regards Dominik Tomczak 问候多米尼克·汤姆恰克

You need to use pinvoke to remove the auto-complete and auto-suggest functionality: 您需要使用pinvoke删除自动完成和自动建议功能:

See this question 看到这个问题

TextBoxes are made to display anything a user types in them. 文本框可以显示用户输入的任何内容。 If you want to automatically clear a TextBox on certain conditions, you'll have to handle the TextChanged event, or create a subclass of TextBox and override the OnTextChanged() method. 如果要在特定条件下自动清除TextBox,则必须处理TextChanged事件,或创建TextBox的子类并重写OnTextChanged()方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM