Solved

typing issue in Combobox Delphi XE2

Posted on 2012-03-14
5
761 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 37723623
maybe is delphi xe2 bug :-( do you have some code behind combobox onchange event?
0
 
LVL 37

Expert Comment

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

Expert Comment

by:Ferruccio Accalai
ID: 37729187
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
ID: 37750428
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
ID: 37854992
Close it
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 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