Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 780
  • Last Modified:

typing issue in Combobox Delphi XE2

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
navidj
Asked:
navidj
1 Solution
 
Sinisa VukCommented:
maybe is delphi xe2 bug :-( do you have some code behind combobox onchange event?
0
 
Geert GruwezOracle dbaCommented:
is it a db combobox ?
  with lookup dataset
0
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
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
 
navidjAuthor Commented:
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
 
navidjAuthor Commented:
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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now