>Hej Benn,
>
>The problem is ActiveWindow returns 0 in some cases.
>
>Just went through this please see thread(s):
>
>Thread #
500554>
>Thread #
502433>
>My solution was to set the ActiveWindow of the app in the start up as a global
>variable and then change is_run32 to use this instead of checking each time
>for the ActiveWindow.
Hi Tim,
Thanks for your reply. I have tryed with the PUBLIC variable with no luck.
I found some information on FindWindow() by Erik Moore under Windows API Functions and it works perfect.
!! Is it raining in Vejle ???
Benn Kjaer
MS Certified Professional - Visual Foxpro
"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"