Hi all!
I'm playing around a bit with my old Visual Basic 6.0. I'm working with images, and this rather strange error came up:
First I isolate a small piece of a larger picture to a smaller picturebox using PaintPicture: picBoxSprite.PaintPicture picBoxResource.Picture, 0, 0, 64, 64, (X * 64), (Y * 64), 64, 64
This works perfectly fine, and the smaller picture of 64x64 pixels is displayed like a charm.
Next, I want to copy this new picture from my picBoxSprite object (PictureBox) to one of my stretchable Image-objects. So I write the following line: imgDirt.Picture = picBoxSprite.Image
This is where my problem occurs; nothing happens! imgDirt remains blank. If I pre-load a random bitmap into picBoxSprite before running the program, the copy operation works perfectly fine.
Why is this? And what can I do to make it work?
Thank you for your time!
Emil Olofsson