Dumb question: where is your image stored/referenced?
I'd like to steal this for a game I made for my kids, but can't figure out how to sub my background for yours! Probably obvious, but I'm only on my first cup of (bad) coffee this morning!
Dumb question: where is your image stored/referenced?
I'd like to steal this for a game I made for my kids, but can't figure out how to sub my background for yours! Probably obvious, but I'm only on my first cup of (bad) coffee this morning!
Bryce
Picture1 holds the source image, you'll probably want to set the source to autoresize also, maybe something like,,.,
Code:
Private Sub Form_Load()
' source
Picture1.ScaleMode = vbPixels
Picture1.AutoRedraw = True
Picture1.AutoSize = True
Picture1.Visible = False
Set Picture1.Picture = LoadPicture("My_Image.bmp")
' destination
Picture2.ScaleMode = vbPixels
Picture2.AutoRedraw = True
Picture2.Move 0, 0, Picture1.Width, Picture1.Height
End Sub