c#中的自动填充文本框 [英] Autocomplete textbox in c#
本文介绍了c#中的自动填充文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。
我需要你对c#中控件的帮助,从数据库中自动完成文本
你能给我吗?任何组件和代码。
提前致谢。
Leonardo Ayala R.
解决方案
由于它是桌面(Windows)应用程序,请尝试Windows TextBox中的自动完成属性。
有三个属性你可能需要照顾:
TextBox.AutoCompleteCustomSource
TextBox.AutoCompleteSource
TextBox.AutoCompleteMode
以下MSDN链接应该有所帮助:
http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletemode.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletesource.aspx [ ^ ]
http: //msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletecustomsource.aspx [ ^ ]
检查此自动完成菜单 [ ^ ]
Hello every one.
I need your help about a control in c# that autocomplete text from a database
do you give me any component and code.
Thanks in advance.
Leonardo Ayala R.
解决方案
Since it is a desktop (Windows) Application, Try the AutoComplete properties in Windows TextBox.
There are three properties you might need to take care of:
TextBox.AutoCompleteCustomSource
TextBox.AutoCompleteSource
TextBox.AutoCompleteMode
The below MSDN links should help:
http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletemode.aspx[^]
http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletesource.aspx[^]
http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletecustomsource.aspx[^]
Check this Autocomplete Menu[^]
这篇关于c#中的自动填充文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文