*Oledragover LPARAMETERS data, effect, button, shift, x, y, state oHitTest = THIS.HitTest( X * THISFORM.nXTwips, Y * THISFORM.nYTwips ) if type("oHitTest")= "O" THIS.DropHighLight = oHitTest endif * Custom method saving nXTwips, nyTwips #DEFINE cnLOG_PIXELS_X 88 #DEFINE cnLOG_PIXELS_Y 90 #DEFINE cnTWIPS_PER_INCH 1440 * 1440 twips per inch * Declare some Windows API functions. DECLARE integer GetActiveWindow in WIN32API DECLARE integer GetDC in WIN32API integer iHDC DECLARE integer GetDeviceCaps in WIN32API integer iHDC, integer iIndex * Get a device context for VFP. liHWnd = GetActiveWindow() liHDC = GetDC(liHWnd) * Get the pixels per inch. liPixelsPerInchX = GetDeviceCaps(liHDC, cnLOG_PIXELS_X) liPixelsPerInchY = GetDeviceCaps(liHDC, cnLOG_PIXELS_Y) * Get the twips per pixel. THISFORM.nXTwips = ( cnTWIPS_PER_INCH / liPixelsPerInchX ) THISFORM.nYTwips = ( cnTWIPS_PER_INCH / liPixelsPerInchY )Or you could just try with 96 in place of twips (on many machines it was the value I opbserved for nXTwips and nYTwips - not the way to go but in testing stage doesn't harm).