Hi,Couldn't find an existing KB for this issue:I'm trying to add a couple of items to the Combobox.Items collection and I receive the error described in the title.The reason is that each object I'm trying to add is an instance of a class that overrides the 'ToString' method and in some cases the method returns null. The thing is, that the implementation of ComboBox.NativeAdd look like this:private int NativeAdd(object item) { Debug.Assert(IsHandleCreated, "Shouldn't be calling Native methods before the handle is created."); int insertIndex = (int)SendMessage(NativeMethods.CB_ADDSTRING, 0, GetItemText(item)); if (insertIndex < 0) { throw new OutOfMemoryException(SR.GetString(SR.ComboBoxItemOverflow)); } return insertIndex; }You can see that is assumes that if the item could not be added it is a memory related issue which in may case, not correct.I'm using VS2008 SP1, .NET framework 3.5 sp1.Cheers,Gai.
Version