Hi Friends
I have a foxpro application (say app1) and sometimes i call another foxpro application (say app2)
i following code in app1
DECLARE LONG FindWindow IN WIN32API AS FindWindow STRING @a, STRING @b
nn = FindWindow(0,"app2")
DECLARE INTEGER SetForegroundWindow IN user32 INTEGER hwnd
=SetForegroundWindow(nn)
DECLARE INTEGER SetActiveWindow IN USER32 INTEGER hWnd
SetActiveWindow(nn)
I have following code in app2 activate event
thisform.cmdbutton_click()
but when i run above (i.e. in app1) activate event is not getting fired??
any ideas how to fix this please!!
Thanks
Nitin