> When this exception is thrown when you click on the ellipsis button for
> the collection or when you click on the button to create new item for the
> collection (inside the collection edtor)?
>
> In other words - do you see the collection editor at all?
No, I do not see the collection editor.
Funny thing is that this happens to me in editor inherited from UITypeEditor
also.
I made a dropdown style editor for one of my properties and it worked fine
in VS2003 but in VS2005 sometime I get exception "Object reference not
set..." when I click on the dropdown button in property grid. I have tried
with debugging the design time and I discovered that in
EditValue(ITypeDescriptorContext context, IServiceProvider provider, object
value)
method, parameter "context" is null.
I suspect that the same thing happens with the collection editor.
Any conclusions?