Computing.Net > Forums > Programming > picture property in VB6

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.

picture property in VB6

Reply to Message Icon

Name: jr_in_canada
Date: February 21, 2005 at 09:48:43 Pacific
OS: Win 2000
CPU/Ram: Pentium
Comment:

I need to assign the picture of a picturebox object to a button after this picture is modified in run-time.

I mean, I want to modify a picture in a picturebox and assign it to a button in run-time...

Somebody can help me?


Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: HiJinx
Date: February 21, 2005 at 12:47:45 Pacific
Reply:

Set the command button's 'Style' property to graphical, then just use the code

command1.picture=picture1.picture

The picture won't automatically scale to fit the button so if you choose one too large you'll only get a tiny bit of it showing on the button.


0
Reply to Message Icon

Related Posts

See More


Symantec Ghost 2003 v8.0 pointer to byte array



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: picture property in VB6

classes interface in VB6 (abstract) www.computing.net/answers/programming/classes-interface-in-vb6-abstract/6017.html

Load File on Prog Run - VB6 www.computing.net/answers/programming/load-file-on-prog-run-vb6/5243.html

Run and compile Java file in VB6? www.computing.net/answers/programming/run-and-compile-java-file-in-vb6/15563.html