Net-informations.com

How to Autocomplete TextBox

Autocomplete TextBox

arrow keys

From the version Visual Studio 2005, some of the controls support Autocomplete feature including the TextBox controls. The properties like AutoCompleteCustomSource, AutoCompleteMode and AutoCompleteSource to perform a TextBox that automatically completes user input strings by comparing the prefix letters being entered to the prefixes of all strings in a data source.

AutoCompleteCustomSource

AutoCompleteCustomSource is helpful for TextBox controls in which string sources like URLs, addresses etc. will be frequently entered.

AutoCompleteCustomSource property is perform to set the custom list of values.

AutoCompleteMode property is perform to set how the auto-complete candidates are displayed.

C# Autocomplete TextBox

The following C# program add some data values to AutoCompleteStringCollection and perform as an Autocomplete TextBox



Autocomplete TextBox working with Database values C#

The following C# program connect to database and add Dataset values to AutoCompleteStringCollection and perform as an Autocomplete TextBox.



VB.Net Autocomplete TextBox

Autocomplete TextBox working with Database

The following VB.Net program add some string values to AutoCompleteStringCollection and display as Autocomplete TextBox while entering text.



Autocomplete TextBox working with Database values VB.Net

TextBox working with Database

The following VB.Net program connect to database and add Dataset values to AutoCompleteStringCollection and display as an Autocomplete TextBox while entering values to TextBox control.



TextBox

A TextBox control is used to enter text in an application. It has additional capabilities that is not found in the standard Windows text box control, including multiline editing and password character masking. More about.... C# TextBox and VB.Net TextBox

Create a Numeric Text Box

In many situations you need to enter only numeric values in the Textbox. Here you can see some useful techniques that accept only numbers in the textbox. More about.... Numeric Only Textbox



NEXT.....Autocomplete ComboBox