Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Visual Basic picture box question
#11
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
Reply
#12
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
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)