Solved

typing issue in Combobox Delphi XE2

Posted on 2012-03-14
5
748 Views
Last Modified: 2012-06-27
Hi,

There is a Combobox with 100 items, is in a Delphi(XE2) form and both the drop down list and the auto complete is working fine while the user is typing the right text.

But when the users do a mistake and type a word which is not in the items then the auto complete does not perform well, especially when the users type fast, the form will be freeze, (not responding) and most of the times you end up shutting down the application.

Is there any solution to fix this.

Thanks
0
Comment
Question by:navidj
5 Comments
 
LVL 25

Expert Comment

by:Sinisa Vuk
Comment Utility
maybe is delphi xe2 bug :-( do you have some code behind combobox onchange event?
0
 
LVL 36

Expert Comment

by:Geert Gruwez
Comment Utility
is it a db combobox ?
  with lookup dataset
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
Try reducing the autocompletedelay value.
It's 500 ms by default, that means that the AutoComplete is performed starting from an empty filter when time between any keypress is >=  half  a second. If the user types fastest than the autocompletedelay time, then the procedure is executed again and again without reset of the internal filter and could crash into a form freezing.
0
 

Accepted Solution

by:
navidj earned 0 total points
Comment Utility
Thanks Guys,

It might be a bug,

I did try the delay time but no different,

but what I did was changing the style. the defoult style is "csDropDown" which has got this problem. Other  styles working fine.

I am now using "csDropDownList" and I am OK with that.
0
 

Author Closing Comment

by:navidj
Comment Utility
Close it
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now