Hi
I’m building a custom listviewcombobox starting from usercombobox control.
In dropdowncontrol I added a listview and set property and methods according to my needs. All Work right.
I have only the following strange behavior.
The first time I press the keydown button the control correctly displays the dropdown. The listview has the focus and I can keep scroll the listviewitems with the keydown button.
Now I close the dropdown (for example by pressing the Ecape button). If I press keydown button again, I see the dropdown correctly, but this time the listview has no focus and I can’t scroll through the items with the keydown button. I noticed that the focus remains on the textbox.
I try to set programmatically the focus on listview in the DropDown event. From debug I see correctly that Me.focused = false and Listview.focused = true, but the cursor remains active on the textbox. To activate the listview the only solution is to click with the mouse on the listview.
In other words I would like every time I press the keydown button, the dropdown appears and I can always scroll through the items by pressing the keydown button.
Is this behavior correct or is it a bug?
Thanks in advance
Hi Angelo,
thanks for preparing the sample.
I have tested it with the latest internal build and the problem does not seem to appear.
I will inform you when the new build is released so you can retest on your end.
Best regards
Frank
Hi Frank,
I’ve attached an example.
I think the issue is when the textbox have focus.
Afetr this event the keydown button set only the cursor positon at the end of the textbox.
Thanks
Hi Angelo,
can you please wrap up a test case so we can check the code and fix the problem or provide a work around ?
Thanks in advance !
Best regards
Frank
Please login first to submit.