I have two VB applications.
Both have picture box with picture inside and the AutoRedraw property is true.
I want that one application will copy its picture to the other (I have the destination picture box hWnd).
I'm doing the following:
DesDC = GetDC(DestHwnd)
BitBlt(DestHwnd, 0, 0, 1000, 1000, SourceDC, 0, 0, SRCCOPY)
The result is that the picture was copied but after moving
some window above the destination picture box is presenting
the old picture (not the one that I copied),
It's just like the AutoRedraw property of the destination
picture box is false (altough it was set to true).
Does anyone know how to copy the picture so the AutoRedraw will present the new picture and not the previous one ?