>Another ActiveX mystery,
>
>I'm using VFP5, Treeview 6, Listview 6, RTF Control
>
>I have a group of ActiveX controls on form1. From form1 I call a modal form2 via a commandbutton. Immediately the display of all the form1 Activex controls get scrambled or blanked.
>
>If I do the same thing with form2 as non-modal the controls work perfectly before and after the call to form2.
>
>I am using the Thisform.LockScreen = .T., _VFPAutoYield = .F., and SYS(2333, 0).
>
>Clearly, the modal call interrupts processing of the ActiveX controls. Is there a solution or a work-around? Form2 needs to be modal or I create all kinds of other problems.
>
You migh try trapping in the Form2's LostFocus event and doing a SetFocus to the last control accessed on Form2 to make the form behave as if it were modal.