Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a question about some code for Visual
Basic. I'm playing around with it and can't
remember how to have a picture box start
empty and then assign a picture via code
during execution. Thanks for any help you can
give.

You didn't specify which version, but maybe this faq page will be of use.
From what I recall of VB6, at least, simply place the control on the form, and then under some event
to clear a picturebox control
set picture1.picture = nothingto load from a file
picture1.picture = loadpicture(path)to save it
savepicture picture1.picture, pathto copy from an image
set picture2.picture = picture1.imageHope that helps.

I'm using Visual Basic 2005 (I got it free from my college). From what I
understand it's not too different from the latest version. Should help. At
least I'll have the structure right, can play with the keywords if need be.
Thanks!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |