XTPShellAutoCompleteFlags Enumeration
Description
Flags to control the operation of the Combo Box and Edit Control ShellAutoComplete functionality.
Members
| Member | Description |
|---|---|
| xtpShellAutoCompleteFileSystem | Include the file system as well as virtual folders such as Desktop or Control Panel. |
| xtpShellAutoCompleteFileSysOnly | Include the file system without virtual folders. |
| xtpShellAutoCompleteUrlAll | Include the URLs in the user's History and Recently Used lists. Equivalent to xtpShellAutoCompleteUrlHistory |
| xtpShellAutoCompleteUrlHistory | Include the URLs in the user's History list. |
| xtpShellAutoCompleteUrlMRU | Include the URLs in the user's Recently Used list. |
| xtpShellAutoCompleteAll | Include the History and Recently Used lists and the file system as well as virtual folders. |
Remarks
Both the Combo Box and Edit Control can use the ShellAutoComplete feature.
To use ShellAutoComplete, Auto Complete must be enabled on the system. You can change the Auto Complete settings manually by launching the Internet Options property sheet from the Control Panel and clicking the Content tab, then click on the "AutoComplete" button. Make sure "Use AutoComplete for Web Addresses" is checked.
ShellAutoComplete requires Internet Explorer 5.0 or greater to be installed.
The picture below shows an edit control using the xtpShellAutoCompleteUrlHistory flag. The code in the example below was used to create this sample.

Example
ShellAutoComplete Sample (Visual Basic)
This sample illustrates how to use the Shell Auto Complete functionality of the Edit Control.
Private Sub Form_Load()
Dim Control As CommandBarEdit
Set Control = CommandBars.ActiveMenuBar.Controls.Add(xtpControlEdit, 100, "URL")
Control.Width = 200
Control.ShellAutoComplete = xtpShellAutoCompleteUrlHistory
Control.EditHint = "Type URL Here"
End Sub
See Also
ComboBox ShellAutoComplete Property | Edit Control ShellAutoComplete Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.