G
Guest
I created a composite control containing a TextBox. The Text property just delegates to the TextBox.Text property. EnsureChildControls() is the first thing I call in both the Get and Set operations.
Nevertheless, whenever I change the value of the Text property at design time I get the "Object reference not set to an instance of an object." error.
I assume the child TextBox is not created and so it cannot be found.
Am I correct and if yes, why?
EnsureChildControls() shouldn't have been taking care of that?
Any ideas?
dimitris
Nevertheless, whenever I change the value of the Text property at design time I get the "Object reference not set to an instance of an object." error.
I assume the child TextBox is not created and so it cannot be found.
Am I correct and if yes, why?
EnsureChildControls() shouldn't have been taking care of that?
Any ideas?
dimitris