Hi!
I have a listview where I show the values for about 50 different points of measurement. They all update (individually) about twice a second and I want to show the values as soon as possible.
At the moment I'm looping through the listviewitems in order to find the right one (based on the items text) but the control is flickering (and it seem like it's eating memory but I might be wrong there).
Is there a better way to update the list?
(Sensor is the sensor class which holds the properties of the sensors, such as Value, Name, Location , ...)
This is (a part of) my event handler in the form.
TIA
Kejpa
I have a listview where I show the values for about 50 different points of measurement. They all update (individually) about twice a second and I want to show the values as soon as possible.
At the moment I'm looping through the listviewitems in order to find the right one (based on the items text) but the control is flickering (and it seem like it's eating memory but I might be wrong there).
Is there a better way to update the list?
(Sensor is the sensor class which holds the properties of the sensors, such as Value, Name, Location , ...)
This is (a part of) my event handler in the form.
Code:
Synclock lvwValues
Dim itm as listviewitem
For each itm in lvwValues
if Sensor.Name=itm.text then
itm.Subitem(1).Text=Sensor.Value
exit for
End if
next
end Synclock
TIA
Kejpa