TextBox AutoComplete

  • Thread starter Thread starter Jeff Gaines
  • Start date Start date
J

Jeff Gaines

I am using a TextBox with AutoComplete set to "suggest" and
AutoCompleteSource set to "FileSystem". It works fine but is there any way
of knowing when the user has selected a file in the drop down list that
appears? Ideally something like "AfterAutoCompleteSelect"?

Also on Win7 x64 the OpenFileDialog and FolderBrowserDialog seem to use a
cut down version of Windows Explorer. Is there an equivalent to the
"Ensure Visible" command to ensure the InitialDirectory or SelectedPath
are visible when the dialog opens? They are selected but often not visible
without scrolling.
 
I am using a TextBox with AutoComplete set to "suggest" and
AutoCompleteSource set to "FileSystem". It works fine but is there any way
of knowing when the user has selected a file in the drop down list that
appears? Ideally something like "AfterAutoCompleteSelect"?

Also on Win7 x64 the OpenFileDialog and FolderBrowserDialog seem to use a
cut down version of Windows Explorer. Is there an equivalent to the
"Ensure Visible" command to ensure the InitialDirectory or SelectedPath
are visible when the dialog opens? They are selected but often not visible
without scrolling.

Just for the record I have solved the Folder Browser issue by falling back
on the SHBrowseForFolder call - it's fine as long as you don't use the new
ui flag. Presumably a bug in Win7 or Win7 Explorer?
 
I am using a TextBox with AutoComplete set to "suggest" and
AutoCompleteSource set to "FileSystem". It works fine but is there any way
of knowing when the user has selected a file in the drop down list that
appears? Ideally something like "AfterAutoCompleteSelect"?

Again for the record I created a custom TextBox, inherited from TextBox,
and looked for the WM_SETTEXT message in WndProc. As far as I can tell so
far this is only sent after a user has selected a path from the drop-down.
 
Back
Top