D
David Ichilov
I've class derived from "Object" class, with ToString() method overriden
itc. ,
now i add object of this class to Windows.Forms.ListBox.Items
collection, and it works fine, displaying what ToString() should return...
then the program is in the runtime, i chage fields of this object in thet
way ( (MyClass)ListBox.SelectedItem ).SomeProperty = newValue;
so ToString() method now will return new value, but text showed in a listbox
itself not changes, i tried to call ListBox.Update(), adn ListBox.Text = "",
but nothing worked...
What can i do?
itc. ,
now i add object of this class to Windows.Forms.ListBox.Items
collection, and it works fine, displaying what ToString() should return...
then the program is in the runtime, i chage fields of this object in thet
way ( (MyClass)ListBox.SelectedItem ).SomeProperty = newValue;
so ToString() method now will return new value, but text showed in a listbox
itself not changes, i tried to call ListBox.Update(), adn ListBox.Text = "",
but nothing worked...
What can i do?