Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / June 2005

Tip: Looking for answers? Try searching our database.

DataBound Textbox using DataSet and Auto Complete

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eXtreme - 19 Jun 2005 20:34 GMT
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
"Jeffrey Tan[MSFT]" - 20 Jun 2005 02:59 GMT
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
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

eXtreme - 20 Jun 2005 04:24 GMT
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,

> Hi eXtreme,
>
[quoted text clipped - 33 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 20 Jun 2005 06:39 GMT
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
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.