J
Joe
Stupid question, but I'm really stuck
I have a class that overrides ToString(). When this class is cast back to
Object, and ToString()
called, Object.ToString() is called instead. I've tried everything:
Public Overrides Function ToString() as String,
Overrides Function ToString() as String,
Overrides Overloads ToString() as string,
Shadows ToString() as String,
etc...
Not that it should make any difference, but I want to be able to add an
object of this class to a ComboBox and have its ToString() method invoked to
list the item in the ComboBox (I'm not interested in DataBinding).
Thanks,
Dave Hagedorn
I have a class that overrides ToString(). When this class is cast back to
Object, and ToString()
called, Object.ToString() is called instead. I've tried everything:
Public Overrides Function ToString() as String,
Overrides Function ToString() as String,
Overrides Overloads ToString() as string,
Shadows ToString() as String,
etc...
Not that it should make any difference, but I want to be able to add an
object of this class to a ComboBox and have its ToString() method invoked to
list the item in the ComboBox (I'm not interested in DataBinding).
Thanks,
Dave Hagedorn