V
Vilem Sova
I want to use a user-defined object in the 'Add' method to add items to a
combo box. The help documentation says that if you use an object in the add
method then the object's 'ToString' method is used to obtain the string to
display in the combo box.
I've added a public property "ToString" to my object that contains the
required text to display, but it is not being called to get the required
text. The text that is appearing in the combo box list is
ProjectName.ObjectName for every item in the list.
So how do I create the "ToString" property so that it's called by 'Add'
method of a combo box?
Thanks
Vilem Sova
combo box. The help documentation says that if you use an object in the add
method then the object's 'ToString' method is used to obtain the string to
display in the combo box.
I've added a public property "ToString" to my object that contains the
required text to display, but it is not being called to get the required
text. The text that is appearing in the combo box list is
ProjectName.ObjectName for every item in the list.
So how do I create the "ToString" property so that it's called by 'Add'
method of a combo box?
Thanks
Vilem Sova