Visual Basic Question

Intel / D975xbx2
January 3, 2009 at 18:17:13
Specs: Microsoft Windows XP Home Edition, 3.2 GHz / 3325 MB
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

See More: Visual Basic Question

Report •

January 3, 2009 at 23:46:21
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 = nothing

to load from a file
picture1.picture = loadpicture(path)

to save it
savepicture picture1.picture, path

to copy from an image
set picture2.picture = picture1.image

Hope that helps.

Report •

January 4, 2009 at 07:01:50
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.

Report •

Related Solutions

Ask Question