R
Randy Riness
After changing a property in an object added to a
listbox, how can I get the listbox to recall the ToString
method and display current values?
Example:
Private Sub AddToList
Dim MyObject as New MyClass
' Set property values
Lisbox.Items.Add(MyObject)
End Sub
Private Sub UpdateObject
Dim MyObject as MyClass=CType
(ListBox.SelectedItem,MyClass)
MyObject.Property="NewValue"
' Now, the object has new data
' but the old value from ToString still shows.
'What goes here to get the listbox to refresh/repaint?
End Sub
TIA
listbox, how can I get the listbox to recall the ToString
method and display current values?
Example:
Private Sub AddToList
Dim MyObject as New MyClass
' Set property values
Lisbox.Items.Add(MyObject)
End Sub
Private Sub UpdateObject
Dim MyObject as MyClass=CType
(ListBox.SelectedItem,MyClass)
MyObject.Property="NewValue"
' Now, the object has new data
' but the old value from ToString still shows.
'What goes here to get the listbox to refresh/repaint?
End Sub
TIA