-
I just don't get it?!?!
I have a picturebox called PicBox. The following code doesn't save the SAMPLE.
PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
PicBox.AutoRedraw = True
PicBox.Print "SAMPLE"
SavePicture PicBox, App.Path & "\temp.bmp"
What's wrong...please!
-
the Picture Property doesn't change, when you Print or Draw on the Picturebox using the Line or PSet Methods you are updating the Image, so you can either:
Code:
PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
PicBox.AutoRedraw = True
PicBox.Print "SAMPLE"
SavePicture PicBox.Image, App.Path & "\temp.bmp"
Or Force the Picture to Update, e.g.
Picture1 = Picture1.Image
Code:
PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
PicBox.AutoRedraw = True
PicBox.Print "SAMPLE"
PicBox = PicBox.Image
SavePicture PicBox, App.Path & "\temp.bmp"
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]