ListView Select

M

Marcos Ribeiro

Hi
I use the following code to select a specific ListViewItem on ListView

lvw.Items(2).Selected = True
lvw.EnsureVisible(iPos)
lvw.Select()
(I tried also lvw.Focus() )
All works fine, lvw got the focus and the right row is selected
(highlighted). The problem is: If I press the down arrow key the cursor
does not go to the next row. I have to press down arrow key again to
select the next row.
Why does it happen? There is any work around?
Thanks in advance
Marcos
(e-mail address removed)
 
M

Marcos Ribeiro

I found the solution myself. Btw very simple. My bad.
lvitem.focused = TRUE
Marcos
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top