Hi,
I'm trying to add an object to a checked listbox using VC++2005 Express.
I tries adding a managed String (String ^) and objects that implement their
own version of the ToString() method. I always get the same error message:
"object reference not set to an instance of an object". The objects are
initialized and I can see them and their content in the debugger -
everything's fine until I hit the myListBox->Items->Add(myString,false);
instruction and the exception triggers...
Any ideas on how to get this working?
Nishant Sivakumar - 25 Nov 2005 15:12 GMT
Looks like the ListBox has not been created yet.

Signature
Regards,
Nish [VC++ MVP]
> Hi,
>
[quoted text clipped - 9 lines]
>
> Any ideas on how to get this working?