Articles in this section
Category / Section

How to set the source of the AutoComplete control to FilePath or Registry using C#?

1 min read

 

AutoComplete control supports three types of source viz. FilePath, Registry and Custom.

Source of the AutoComplete control can be changed using the Source property and SourceMode enum of the AutoComplete class respectively.

To set the autocomplete source as FilePath, the following line of code can be used.

FilePath:

this.AutoComplete.Source = SourceMode.FilePath;

To set the autocomplete source as Registry, the following line of code can be used.

Registry:

this.AutoComplete.Source = SourceMode.Registry;

To set the autocomplete source as Custom, the following line of code can be used.

Custom:

this.AutoComplete.Source = SourceMode.Custom;

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied