Udostępnij za pośrednictwem


The object '<object name>' returned null for the property '<property name>' but this is not allowed

There are some properties in the .NET Framework that should always return an object. For example, the Controls collection of a form should always return an object, even when there are no controls in it.

To correct this error

  • Ensure that the property specified in the error is not null.

See Also

Reference

Properties Window