Click here to Skip to main content
13,004,446 members (75,485 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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.
Posted 28-Jan-12 5:53am
SAKryukov 28-Jan-12 12:55pm
What code? Please, ask a question first. What is "TextBox"? Do you think there is only one class with this name? No.
Please, fully-qualified name. Remove "Visual-Studio" and "VisualStudio" (!) tags, tag the type of application and UI library. Is it WPF, Forms, ASP.NET, what?
SAKryukov 28-Jan-12 12:56pm

A suggestion to all experts:

We should stop attempting to answer any questions if OP does not properly specify type of application, UI library and other relevant detail which would exclude this kind of confusion. All type mentioned in the question should be written in fully-qualified form. We should request it and only answer when OP comply. Multiple failures to specify such detail became a curse of this forum.

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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:

The below MSDN links should help:[^][^][^]
leocode7 28-Jan-12 12:11pm
Hello, thanks, but my aplication is not web. it is a desktop aplication, or stand alone. it is only in c# code. no aspx.
can you give me another resource?
SAKryukov 28-Jan-12 12:55pm
You still did not explain what application.
Jyothikarthik_N 28-Jan-12 12:30pm
I've updated as per your requirement, Mark as answer if it solves! :)
Er Anuj Kaushal 30-Nov-12 12:44pm
Hello, I have the same query, so please help me out. its like the last remaining thing in my project. what i want is , if i press "A" alphabet in textbox or datagridview while inserting the data again and again. i want it should open a list of all the items of same suffix. like if i press "A" then all the items starting from "A" will be opened in the list and i dont hv to write multiple times. Can u please help me out. Thanks
SAKryukov 28-Jan-12 12:57pm
Please see my comment above, in red color.
Jyothikarthik_N 28-Jan-12 13:00pm
leocode7 28-Jan-12 13:20pm
take it easy my friends. I understand your suggestion.
Thanks for the solution. this is exactly that I want :)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Check this Autocomplete Menu[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 7 Jul 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100