I create my documents at run time and Dock them as tabbed documents. These documents are in themselves forms which contain an editor. How can I access these forms at run time as I don't know which is the active form. E.g. If I close a Tab I want to Close the underlying form but I can't see how I can get access to it?
I also want to run code on entering or exiting the docked form but I cannot tell which form I am entering or exiting.
This must be pretty standard stuff so I am clearly missing something basic understanding here. I would have expected to be able to access each form by Index but there is no index property on the Site control as far as I can see.