I have heard of certain ActiveX controls not behaving properly with VFP because of their imperfect implementation and the fact that VFP does not have hwnds for every object on a form (I believe VFP itself gets one hwnd and the VFP forms don't get their own hwnd).
Which activeXes are you using?
>Frank --
>
>Thanks for the suggestions. They are just dropped onto the form at design time.
>
>I guess that I could indeed set focus to them at design time and then tab to the next control in sequence once they get focus the first time. This seems kind of odd to me, however --- I can't believe that this is a normal problem -- I doubt my uniqueness in that regard. What if I had a couple of 'em on a form, what then?
>
>Thanks
>
>>Hi James,
>>
>>how are you adding the controls to the form? Programmatically or dropping them on the form at design time? If adding programmatically you may need to set the visible property to .T. (but then again setting focus to them wouldn't work unless they were visible), if dropping them on the form at design time, maybe as a work around you can set focus to them first so they become visible and then set focus to the control you actually want to have focus.
>>
>>>I have a OLEControl which seems to only be visible once it gets focus.
>>>
>>>That is, it's visible if it's first in tab order on the form; or if not, it only becomes visible when I tab to it.
>>>
>>>I'm actually having this behavior with two different OLEControls on different forms. Clearly, there's something I don't understand here.
>>>
>>>Help!