SHAutoComplete (shlwapi)
Last changed: -63.231.54.252

.
Summary
Instructs system edit controls to use AutoComplete to help complete URLs or file system paths.

C# Signature:

[DllImport("shlwapi.dll")]
public static extern Int32 SHAutoComplete(
    IntPtr hwndEdit,
    AutoCompleteFlags dwFlags
);

VB .NET Signature:

Declare Function SHAutoComplete Lib "shlwapi.dll" (TODO) As TODO

User-Defined Types:

[Flags]
public enum AutoCompleteFlags : uint {
    SHACF_DEFAULT           = 0x00000000,  // Currently (SHACF_FILESYSTEM | SHACF_URLALL)
    SHACF_FILESYSTEM        = 0x00000001,  // This includes the File System as well as the rest of the shell (Desktop\My Computer\Control Panel\)
    SHACF_URLALL            (SHACF_URLHISTORY | SHACF_URLMRU),
    SHACF_URLHISTORY        = 0x00000002,  // URLs in the User's History
    SHACF_URLMRU            = 0x00000004,  // URLs in the User's Recently Used list.
    SHACF_USETAB            = 0x00000008,  // Use the tab to move thru the autocomplete possibilities instead of to the next dialog/window control.
    SHACF_FILESYS_ONLY          = 0x00000010,  // This includes the File System
    SHACF_FILESYS_DIRS          = 0x00000020,  // Same as SHACF_FILESYS_ONLY except it only includes directories, UNC servers, and UNC server shares.
    SHACF_AUTOSUGGEST_FORCE_ON      = 0x10000000,  // Ignore the registry default and force the feature on.
    SHACF_AUTOSUGGEST_FORCE_OFF     = 0x20000000,  // Ignore the registry default and force the feature off.
    SHACF_AUTOAPPEND_FORCE_ON       = 0x40000000,  // Ignore the registry default and force the feature on. (Also know as AutoComplete)
    SHACF_AUTOAPPEND_FORCE_OFF      = 0x80000000,  // Ignore the registry default and force the feature off. (Also know as AutoComplete)
}

Notes:

See also GetComboBoxInfo

Tips & Tricks:

Please add some!

Sample Code:

SHAutoComplete(textBox1.Handle, AutoCompleteFlags.SHACF_FILESYSTEM);

Alternative Managed API:

TODO

Documentation