Hi,
I am using Listview control on my project. I add items to the listview control cyclically. I mean I fill the listview with values and then after a time period I refill the listview with the new values. I do it with the code below. But everytime I refill listview it flickers. For example I drag scrollbar of listview down and when it flickers, scrollbar goes up to its default position.
The procedure below is called cyclically
I am using Listview control on my project. I add items to the listview control cyclically. I mean I fill the listview with values and then after a time period I refill the listview with the new values. I do it with the code below. But everytime I refill listview it flickers. For example I drag scrollbar of listview down and when it flickers, scrollbar goes up to its default position.
The procedure below is called cyclically
Code:
'******************************
Dim intIndex As UInt16 = intStartingAddress
'******************************
'Clear Listview
lvwDisplayData.Items.Clear()
'******************************
For Each intTemp As UInt16 In intArray
'Declare a ListViewItem Object
Dim objListViewItem As New ListViewItem
'Set the Properties of the ListViewItem Object
objListViewItem.Text = intIndex.ToString
objListViewItem.SubItems.Add(intTemp.ToString)
'Add the ListViewItem Object to the ListView
lvwDisplayData.Items.Add(objListViewItem)
intIndex += 1
Next
'******************************