First I have a Listbox and set the DataSource to a MyObjectCollection
MyObjectCollection implements the Interface IListSource wich contains MyObject's
MyObject has the method
public override string ToString()
{
return "test";
}
The Listbox now displays "test" for each element in the MyObjectCollection.
But if I apply the IListSource interface to MyObject, too. The Listbox shows an empty string. How to fix that in the "MyObject" class. A workaround is to fix it in the Listbox Format event, but than every GUI element has to implement this workaround :/