>I've got a form with a pageframe, 5 tabs, each tab has a listbox. Also, seven command buttons, an image, three shapes and a dozen or so labels.
>
>When I run the form, an object that was never created appears in top left corner of the form. It looks like a null spinner box with just a down arrow for a scrollbar. Mouse-click on the object and it disappears, tab through the object and it disappears.
>
>The object has no affect on the screen except it appears on top of some labels.
>
>Using amembers(...,2) the object isn't in the list.
>
>I've pack memo'd the scx file, copied the scx and no difference.
>
>Any suggestions why this mystery object is being created and how to get rid of it?
Haven't seen this since VFP7... when it was a mysterious copy of a textbox which would show up again about a dozen pixels above and to the left from its actual position. Also involved pageframe and some Activex.
It seemed to be related to some resizing code somewhere, when the form actually became visible before it was resized, and before the form.init ran to its end. Basically, look for any .setfocus in the .init, that would force the form to show before it is completely built.
I figure your spinner (or a combo? - spinner has two arrows) probably does exist somewhere in your form. You may want to browse your scx and look for any stray objects that you can't explain - backup first - and try to manually make them odd (add a zero to the width, that you can easily edit back) and then compile the form so your manual changes stick. Then run the form and see if you got the right object. If not, revert your changes and try with another suspect. Do this only as a last resort - sounds like exercise in futility to me, but that's what I'd do if I ever had such a phantom again.