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;