Solved

typing issue in Combobox Delphi XE2

Posted on 2012-03-14
5
757 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 26

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

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…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

803 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