title: C# ListBox update on item change
body: <p>I have a list of custom objects which I have added to a ListBox control in my WinForms C# 4.0 application.</p>
  
  <p>When the user selects a particular element in the ListBox, the properties of that object come up in the window next to the ListBox in various input fields. The user can change these and click 'Save' which will modify the data members of the objects to correspond with the changes the user has made.</p>
  
  <p>The function does work. The values are saved to the object, and when the user selects the element again, their changes are confirmed to be saved correctly.</p>
  
  <p>What isn't working is the update of the text in the ListBox. For example if we have a list of staff in the ListBox, and we can see "John Smith" there, we can click his name - edit his name to "John Smithe" and click OK. The ListBox still shows "John Smith", however if we click on his name, then in the TextBoxes on the right we can see that his name has correctly been changed to "John Smithe".</p>
  
  <p>I have tried calling the Refresh() method on the ListBox but this didn't work.</p>
  
  <p>I can fix it by removing the item from the ListBox and adding it again. This works, and it's not really an issue because the items are stored in separate lists anyway so I have no risk of losing any of my staff.</p>
  
  <p>But is this really the best way to do it? Is there a more elegant way to update the text in the ListBox without removing/adding the item again?</p>