如何清除自动完成文本框值 [英] How to clear the AutoComplete TextBox Value
本文介绍了如何清除自动完成文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何清除自动完成文本框控件的值.
Hi,
How to clear the Autocomplete textbox control value.
推荐答案
使用AutoCompleteType="none"
文本框属性.它将删除之前输入的文本框中的所有值.
Use AutoCompleteType="none"
textbox property. it removes all values from textbox which are entered before.
您需要按以下顺序设置文本框的以下两个属性
you need to set following two property of textbox in the following order
textBox1.AutoCompleteMode = AutoCompleteMode.None;
textBox1.AutoCompleteSource = AutoCompleteSource.None;
谢谢
Thanks
尝试一下,
Try this,
TextBox1.AutoCompleteType = AutoCompleteType.Disabled;
希望对您有所帮助.
Hope it helps..
这篇关于如何清除自动完成文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文