i'm trying to create an item to be added to a listbox. reason being is that
the "item" has properties i need to access when it is selected. i'm having
trouble displaying it in the list though. i've tried putting a public
overrides function ToString() and a public shadows function ToString() as
one of its interfaces (returns string) so that the listbox knows what text
to display. the
items should simply be diplaying either an item number and/or description
based on other properties of my item.

where have i gone wrong?

tia,

steve

Re: to string by Tim

Tim
Mon Apr 19 20:21:15 CDT 2004

Can you post your code so we can see where you're going wrong?

--
Tim Wilson
.Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}
"steve" <a@b.com> wrote in message
news:1088u3gjoedqo27@corp.supernews.com...
> i'm trying to create an item to be added to a listbox. reason being is
that
> the "item" has properties i need to access when it is selected. i'm having
> trouble displaying it in the list though. i've tried putting a public
> overrides function ToString() and a public shadows function ToString() as
> one of its interfaces (returns string) so that the listbox knows what text
> to display. the
> items should simply be diplaying either an item number and/or description
> based on other properties of my item.
>
> where have i gone wrong?
>
> tia,
>
> steve
>
>



Re: to string by steve

steve
Mon Apr 19 21:47:12 CDT 2004

thanks tim...i figured it out. it wasn't tostring after all. i left in a
debug flag in the class that suppresses the output. duh!

thanks again,

steve