>There is a bug in the loCaptureBmp function (below) in GDI+. Every time I run it the entire form jumps down one line and I have to set form.top = 0 to reset it. I tried LockScreen = .t. but it had no effect at all. Everything else works great but the screen jump is annoying to my customers.
>
>
WITH _Screen.System.Drawing
> loCaptureBmp = .Bitmap.FromScreen(;
> Thisform.HWnd, ;
> mLeftOffset, ;
> mTopOffset, ;
> mWidth, ;
> mHeight )
> *
> * Write file directly to image object
> Thisform.imgDummy.PictureVal= loCaptureBmp.GetPictureValFromHbitmap()
>ENDWITH
Hi John
I have posted some code for a GDI+ Lightbox here:
http://weblogs.foxite.com/bernardbout/archive/2009/09/21/8974.aspx Download the code and see if you get the same jump.
When I run the sample form included above and capture the screen I do not see any jump.
Also could you give more info about your form properties?
1. ShowWindow
2. WindowState
3. WindowType
4. Titlebar
4. BorderStyle
and I will test this for you with my class to see if any of these have any effect.