Windows Develop Bookmark and Share   
 index > Windows Forms General > C# code to display names in text box from backend alphabetically
 

C# code to display names in text box from backend alphabetically

HI,

In myWindows project i am using text box to disply names which are stored in the database, when i type the specific name it displays the name from database. But what i want is, when i type "v" it should display all names starts with "V".Any one help me by giving the appropriate CODE in C#.

Vinod.H.K  Friday, August 14, 2009 7:38 AM
Use ListBox instead. It already handles the keystroke selection for you.

Hans Passant.
nobugz  Friday, August 14, 2009 12:28 PM
Hi Vinod,
What are you using to display list of database ? I think instead of textbox , combobox would be better option, it will do what you needed.
NareshG  Friday, August 14, 2009 8:01 AM

Thanks for your reply, i will try that....

Vinod.H.K  Friday, August 14, 2009 9:03 AM
Use ListBox instead. It already handles the keystroke selection for you.

Hans Passant.
nobugz  Friday, August 14, 2009 12:28 PM

You can use google to search for other answers

Custom Search

More Threads

• form flicker
• Blinking components...
• Learn WPF at TECHbash 2007 in Northeastern PA
• Dynamic add a Plugin to Project
• [Solved]Converting Integer output to readable ip address?
• load dll from location
• Component One chart
• Selecting both files and directories with OpenFileDialog?
• Progress Bar Query
• CommonDialog issues