Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2009, 06:05 AM
Registered User
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help needed regarding autocomplete textbox in dot net 2.0

Hi,

Method1
--------
I am trying to create a textbox that provides autocomplete feature using a database table (SQL Express) as the source, in dot net 2.0 C#.

I am assigning the AutoCompleteCustomSource property of this textbox to the collection got from the data table at every TextChanged() event of the textbox.

It worked fine. But I get an exception "Attempted to read or write protected memory. This is often an indication that other memory is corrupt" sometimes when I type into the textbox

Method 2
---------
Alternatively, I tried to process the input text onlyif the user is idle for sometime say some 2 seconds while entering the text into the textbox,. For this, I used a System.Windows.Forms.Timer object, call its start() method at the textchanged event, set its interval to 1 second in the initialzation of the application and in the Tick event write the code to associate the AutoCompleteCustomSource property.

But here, the drop down box appears only for one second and disappers.

Your help would be appreciated.

Thanks,

Regards,

Yuvanya





Similar Threads
Thread Thread Starter Forum Replies Last Post
autocomplete dropdownlistASP.NET 2.0 & VB.NET 2005 alexdcosta ASP.NET 2.0 Professional 10 May 11th, 2009 02:21 AM
autocomplete textbox like google nilsan ASP.NET 1.0 and 1.1 Basics 1 February 27th, 2007 07:36 AM
autocomplete textbox like google nilsan ASP.NET 1.0 and 1.1 Professional 0 February 27th, 2007 05:32 AM
autocomplete dropdownlist in ASP.NET 2.0 using VB. alexdcosta ASP.NET 2.0 Basics 2 August 11th, 2006 02:02 PM
autocomplete combo in vb.net winforms imsuneeta General .NET 1 January 25th, 2005 07:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.