如何在文本框上双击显示所有自动完成的条目

问题描述:

需要用户登录
例如Google或Windows Live登录
是否有兴趣在标准Windows窗体文本框中实现此目标的方法
在此先感谢

needed for user login
like Google or windows live login
interested if there is a way to accomplish this on standard Windows Forms textbox
thanks in advance

这是codeproject中的Windows版本: ^ ]

它对我没有用,但是最近有一些积极的评论.还有一种使用列表框和文本框的解决方案要简单得多.如果不在控件上,我只会隐藏列表框: http: //social.msdn.microsoft.com/Forums/zh-CN/csharpgeneral/thread/a8e31841-1ba9-4990-b0e3-bdee489555af [
Here is a windows version in codeproject: AutoComplete TextBox[^]

It did not work for me, but there are recent positive comments. There is also a solution that uses a listbox with a textbox that is a lot simpler. I would just hide the listbox when not on the control: http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/a8e31841-1ba9-4990-b0e3-bdee489555af[^]


请参见


使用数据库和AjaxControlToolkit自动完成


抱歉,这是针对网页的,请参阅解决方案2
see


AutoComplete With DataBase and AjaxControlToolkit


Opps, this is for web page, see Solution 2