Hi Jose
I have the same problem with the treeview control. I resolve the problem as follow:
In the doubleclik event of my OCX control I put this code:
thisform.timer_ejecuta_pantalla=.T.
In my form I have a property timer_ejecuta_pantalla. The default value is .F.
In this form I have a timer control wih the following code in the timer event:
IF THISFORM.timer_ejecuta_pantalla=.T.
THISFORM.ejecutapantalla()
THISFORM.timer_ejecuta_pantalla=.F.
ENDIF
In My form I have the ejecutapantalla() method to call to other form.
As you can see the ejecutapantalla() return to the timer not to the OCX control.
If you have a questions let me know.
Regards
Carlos
Carlos A. Miranda
E.I.S.lnc
President