Posts: 788
Threads: 53
Joined: Nov 2002
Quote:all I get is a white square or garbage copied instead of the actual image
Are you doing that in Load ? Then my guess would be that what you're seeing is the background. The windows hasn't been drawn yet.
oship me and i will give you lots of guurrls and beeea
Posts: 6,419
Threads: 74
Joined: Mar 2002
Yeh, I think it is what happens. I've realized that what bitblt copies is the background (or whatever is located behind the application window). What is happening? I do that LoadPicture, and it shows OK, and then the bitblt is performed... Why is this happening?
The most extrange thing is that I've used that same code before and it worked.
I've also tried to load the bitmap in design time, and I get the same results... Maybe it has to do with some attributes of the picturebox ... I dunno.
I'll check everything again.
EDIT: Exact. That was the problem. I placed a Me.Refresh just before the BitBlt and it worked Ok. Thanx