Computing.Net > Forums > Programming > Visual Basic Question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Visual Basic Question

Reply to Message Icon

Name: Kreeos
Date: January 3, 2009 at 18:17:13 Pacific
OS: Microsoft Windows XP Home Edition
CPU/Ram: 3.2 GHz / 3325 MB
Product: Intel_ / D975xbx2
Subcategory: General
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: shutat
Date: January 3, 2009 at 23:46:21 Pacific
Reply:

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.


0

Response Number 2
Name: Kreeos
Date: January 4, 2009 at 07:01:50 Pacific
Reply:

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!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Visual Basic Question

Newbie Visual Basic Question www.computing.net/answers/programming/newbie-visual-basic-question/9649.html

please help visual basic www.computing.net/answers/programming/please-help-visual-basic/3769.html

Visual basic, Windows 2000 pro www.computing.net/answers/programming/visual-basic-windows-2000-pro/4750.html