Windows应用程序中的自动完成文本框 [英] Autocomplete TextBox in Windows apps

查看:76
本文介绍了Windows应用程序中的自动完成文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

我有一个Windows应用程序,希望具有历史记录感知的TextBox.例如,当我的用户填写用户名时,它应该保存或保留在其历史记录中,以便第二次输入第一个字符时出现用户名.

我写了这段代码,但不起作用:

textbox1.AutoComplete.Add(usr_txt.Text.ToString());

有什么想法请.谢谢.

Hi.

I have a Windows app that I want to feature a history-aware TextBox. When my users fill the username for example, it should saves or keep it in its history so that on the second time entering the first character username appears.

I wrote this code but does not work:

textbox1.AutoComplete.Add(usr_txt.Text.ToString());

Any ideas please. Thanks.

推荐答案

否,
我在表单按钮上编写了此代码,当我的用户在身份验证成功后单击此按钮时,此代码(textbox1.AutoComplete.Add(usr_txt.Text.ToString()))
执行但没有出现任何错误,但是当我的用户第一次单击并成功登录时,以及第二次键入last username时,该用户名不会出现.
好的
谢谢我的朋友.
no,
i wrote this code on button of form and when my user clicks this button after authentication successfully then this code(textbox1.AutoComplete.Add(usr_txt.Text.ToString()))
executes and but whitout any error but when my users click for first time and login successfully and for second time when type last username , the username does not appear.
ok
thanks my friend.


这篇关于Windows应用程序中的自动完成文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆