Yes, I tried that, but when the code executes, the first attempt to use the object give me a "object not set to an instance" error.
I am using C#, so I did not specify "with events". My line looks like this...
protected PageHeader1 _PageCtrl;
But as I said, this does not get me the instance of the control which was added to the form.
|