D
Derrick
I have created a custom control, and for one of its properties it is
possible that the value may be null. However, at design time when a null
value is assigned, I get the error "The object 'myControl1' returned null
for the property 'TheProperty' but this is not allowed".
The property itself is a custom Collection object (extending
CollectionBase), so I could use an empty collection instead of null as a
last resort, but I would much rather have a null object instead.
How can I allow null values?
Thanks,
Derrick
possible that the value may be null. However, at design time when a null
value is assigned, I get the error "The object 'myControl1' returned null
for the property 'TheProperty' but this is not allowed".
The property itself is a custom Collection object (extending
CollectionBase), so I could use an empty collection instead of null as a
last resort, but I would much rather have a null object instead.
How can I allow null values?
Thanks,
Derrick