ListView FocusedItem

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

When converting VB6 ListView code to DotNet, what do you do to replace the
ListView.FocusedItem object, specifically I want to reference
ListView.FocusedItem.Top

Thanks
Dave
 
Hi Dave,
Thanks for posting. From your post, my understanding on this issue is: You
don¡¯t know how to get the ListView FocusedItem's Top property when
converting VB6 ListView code to DotNet. If I¡¯m off base, please feel free
to let me know.
ListView still has FocusedItem property in DotNet. You can use the
ListView¡¯s FocusedItem property just as you do in VB6. In DotNet,
ListView¡¯s FocusedItem is a ListViewItem type. To get the ListView
FocusedItem's Top property, you'd use the sentences as following:
dim top as integer
top = Me.ListView1.FocusedItem.Bounds.Top
Please let me know if you have any other concerns, or need anything else.

Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================
 
Back
Top