0

Hello folks
I have created a listview my problem is when i want to save some data into my listview
i want the data to be highlighted in list view

Can you help me folks?

God bless folks ...

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by kinwang2009
0

Hi cabsjonel,

Use the following code.

Dim NewLItem as ListItem
Set NewLItem = lvUsers.ListItems.Add(, , Text1.Text) 'Text1 is a text you want to add to list view
    Set lvUsers.SelectedItem = NewLItem 'sets highlight to added item of list view
    Set NewLItem = Nothing

Hope this helps

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.