I am adding an object to a Listbox which has the properties "ID" and "Text". I have set the "DisplayMember" property of the Listbox to "Text" and "ValueMember" to "ID".
Everything works fine when I add a new item to the list, but when I edit the item and change the "Text" value, it is changing in the object but the Listbox still just showes the original value.
I have tried calling ".Refresh" and ".Update" to see if they worked, but made no difference.
I usually use VB6 for prototyping programs but decided to use VB.NET for this one. Did not realise VB.NET got shot of the "ItemData" property in the ListBox control. Can see the benifit other than this refreshing problem.
Everything works fine when I add a new item to the list, but when I edit the item and change the "Text" value, it is changing in the object but the Listbox still just showes the original value.
I have tried calling ".Refresh" and ".Update" to see if they worked, but made no difference.
I usually use VB6 for prototyping programs but decided to use VB.NET for this one. Did not realise VB.NET got shot of the "ItemData" property in the ListBox control. Can see the benifit other than this refreshing problem.