开发者

How to Disable dynamic searching when typing in a listbox

开发者 https://www.devze.com 2022-12-26 11:27 出处:网络
I want to disable default search when typing in the listbox. For example I type L and the M into the listbox, the focus should move to string starting with LM, but here focus moves to string starting

I want to disable default search when typing in the listbox.

For example I type L and the M into the listbox, the focus should move to string starting with LM, but here focus moves to string starting with M.

This is because the default behaviour algorithm/c开发者_JAVA技巧ode that I have written gets overwritten and the focus moves to string starting with M.


Sounds like you want to implement auto-complete on the combo box. The easiest way to do this is inherit from the system combo, and handle the KeyUp event to implement the functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消