Hi Fred
Have you try to issue =sys(2333, 0) before creating treeview? (I.E.: in the load event of the form). This is necesary for the good behavior of treeview.
Then in the init event of the treeview (after instantiated) '=sys(2333, 1)'
Also if you want to leave form pressing 'esc' while the treeview has focus you must put this code in the keypress of the control
LPARAMETERS keyascii
if keyascii = 27
keyboard "{Esc}"
endif
Hope this help
>Hi all!
>
>VFP5a with SP3
>
>I have a form with a TreeView Control on it. About 20% of the time, when I try to close the form, it will not release. I have no outstanding object references in the form, it just won't release. I've tried TreeView controls both with and without ImageList controls. It seems that the TreeView control just won't release and that's what keeps the form from releasing. It does go away with a CLEAR ALL.
>
>Any tips on what I should be looking for to get around this?
Saludos,
A.G.P.
---------