Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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.
Posted
Updated 15-Jul-12 11:45am
v2
Comments
[no name] 15-Jul-12 10:00am    
Do you think that "does not work" is a good description of your problem? Do you call your mechanic and tell him that your car "is broke" and expect him to know exactly what the problem is?

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900