Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture Down Arrow in a Listview

Status
Not open for further replies.

wilsonaa

Technical User
Jan 3, 2002
9
GB
Does anyone know how to capture a down arrow event in a listview? I can capture the click event and dbl click but not the down arrow.

Thanks.
 
Are you talking about when the user presses the down arrow on the keyboard, or clicks to open up a combo box?

The keyboard down arrow has an ASCII value that you can trap for. It's fairly easy.

I may be wrong, but I don't believe there is a way to tell when the user clicks the dropdown arrow of combo box. The way I got around this was to create a text box and shrink the combo box to the width of the arrow only. I then use smoke, mirrors, a touch of magic, and a lot of code to hide the text box and expand the combo box when it's appropriate.

Why do you need to do this? There may be an easier way.
 
Hi,
I am looking to capture the down arrow key on a activex listview control not a combo box. I need to do this because as the user scrolls down the listview items, a sub-form will display additional information relating to each newly selected listview item. I can display this additional information if the user clicks on the listview item.

Thanks,
Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top