Hi Alan,
I've no answer to your question but I'm curios what is stored in the forms collection of the screen at that time?
? _screen.forms(1).Name
? _screen.forms(2).Name
>I have some code in my form base class which uses the instance of the form to position the form in a cascade manner relative to the previous instance.
>
>To do this my code uses _screen.formcount to cycle-through existing forms, but there is some weird behaviour when _screen.formcount jumps from 0 to 2 when a form is launched (I suspended it in form.load() to establish this). This only happens to one particular form, and this behaviour only happens in VFP6 - in VFP7 _screen.formcount goes from 0 to 1 as expected. As I need the form to run under both versions, it easy enough to use version exception code to handle the problem, but I would like to know what is going on here. (Of course it may just be form corruption or a bug).
>
>Anyone out there any ideas what may be going on here?
>
>TIA
>Alan
--sb--