Textbox Show auto-complete items on mouse enter?

Hobbyist_programmer 621 Reputation points
2021-03-25T18:47:35.57+00:00

Hallo,

Is there a way to show auto complete items on mouse enter ?. It works when i type the first letter but i want it when i put the cursor on the textbox. is it possible?

Thanks

Developer technologies | VB
{count} votes

Accepted answer
  1. Castorix31 90,686 Reputation points
    2021-03-26T09:52:11.373+00:00

    It can be done by using directly IAutoComplete2 interface with ACO_UPDOWNKEYDROPSLIST flag
    Then you can simulate Key Down for example to show the list
    I tested on Set Focus , but you can do it on Mouse enter or any other event =>

    81832-autocomplete.gif


1 additional answer

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-03-26T02:47:31.973+00:00

    Hello,

    A TextBox setup for autocomplete does not have a method and event to display the autocomplete list on mouse event. You would have to write a custom TextBox which would be a good deal of work to accomplish what you are asking for.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.