Groups | Blog | Home
all groups > dotnet windows forms databinding > june 2005 >

dotnet windows forms databinding : DataBound Textbox using DataSet and Auto Complete


eXtreme
6/19/2005 3:34:18 PM
Does anyone know of a sample application which has a textbox that behaves
like the textbox on the start RUN prompt in Windows XP?

Specifically I need the textbox to be databound to a dataset and when a user
types in a letter I want the textbox to autofill with a word which most
closely matches the list in the dataset.

Any tips, pointers, or otherwise are appreciated.

Thanks,
eXtreme

eXtreme
6/19/2005 11:24:11 PM
Thank you for the articles these are more helpful than the ones I found
earlier today. I was a little disappointed to find that .NET 1.1 Framework
did not contain the shell functions for autocomplete and autosuggest. I'm
glad to see Whidbey is going to have this included out of the box.

Thanks,


[quoted text, click to view]

v-jetan NO[at]SPAM online.microsoft.com (
6/20/2005 12:00:00 AM
Hi eXtreme,

Thanks for your post.

First, in Run dialog of Start menu, the auto prompt control is not a
TextBox(Edit), it is a Combobox control. Anyway, we can provide
AutoComplete function for both TextBox and Combobox controls. Normally, the
AutoComplete function is a shell function, which we can enable it with
shell function SHAutoComplete, for more information, please refer to:
"Using Autocomplete"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/pla
tform/shell/programmersguide/shell_int/shell_int_programming/ac_ovw.asp

In .Net, we can p/invoke this shell function to get the same effect, please
refer to:
"Autocomplete Textbox Round II "
http://www.planet-source-code.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!3
603/lngWid!10/anyname.htm
"C# does Shell, Part 4"
http://www.codeproject.com/csharp/csdoesshell4.asp
"AutoComplete ComboBox in VB.Net"
http://www.codeproject.com/vb/net/autocomplete_combobox.asp

In additionally, in .Net2.0 Whidbey, this autocomplete function is embeded
into TextBox and ComboBox controls. Hope this helps
=================================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
v-jetan NO[at]SPAM online.microsoft.com (
6/20/2005 5:39:21 AM
Hi eXtreme,

Thanks for your feedback.

I am glad my reply makes sense to you. Yes, .Net encapsulates underlying
windows' function, such as SDK, Shell etc... However, there is so many
features in Windows that, currently .Net only covers partial of Windows'
function. So this is why COM interop and P/invoke still existed in .Net
world.

Anyway, our product team is working day by day to add more and more useful
features in. Also, the community feadback is very important for helping us
to improve the product, so thanks for your feedback.

If you need further help, please feel free to post.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button