>What about hWnd property of controls? WHICH window handle it contains? So checking for VFP7 is easy - just check if hWnd proeprty exists and it is not 0.
Some ActiveX controls (the TreeView, ListView and Date/Time picker are three) have hWnd properties now because they're real windows. However, not all do, so it's a hit or miss method.
George
Ubi caritas et amor, deus ibi est