TextBox AutoComplete

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.
 
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.

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?
 
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"?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top