Thisform.LightBox.ShowLightBox(oBrowser,mLeftOffset, mTopOffset, mWidth, mHeight)
and changed your code to:Lparameters oBrowser, mLeft, mTop, mWidth, mHeight Thisform.LockScreen = .T. Local loCaptureBmp As xfcBitmap With _Screen.System.Drawing loCaptureBmp = .Bitmap.FromScreen(; Thisform.HWnd, ; mLeftOffset, ; mTopOffset, ; mWidth, ; mHeight ) * * Write file directly to image object oBrowser.Parent.Parent.imgDummy.PictureVal= loCaptureBmp.GetPictureValFromHbitmap() Endwith Thisform.LockScreen = .F.I do thank you for taking the time to help me with this.