>Bill,
>I tried it and works nice (I think). A timer fires (interval 1000) :
>
>thisform.text1.value = iif(GetActiveWindow() > 0, ;
>'Active','NonActive')+trans(datetime())
>
>Cetin
Probably just me, but I'm missing why I want to get the handle of the window.
I can see the idea of having a Timer firing periodically to test to see if the form height is large enough for the objects on it and adjusting the form's height if it isn't. I was hoping for some kind of native event that would fire in which I could test the form condition and react accordingly. It just seems like overkill to have a Timer eating up CPU cycles for the sole purpose to test for a condition which would only happen rarely, and probably in most cases, never. I'll have to mull over this some.
Thanks for giving it some thought Cetin.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.