Solved

Storing an image in a variable

Posted on 2004-08-19
6
147 Views
Last Modified: 2010-05-02
I would like to be able to do something like

Dim myImage as Image

and then load an image from a file into myImage.
How is this done
0
Comment
Question by:DennisKeeling
6 Comments
 
LVL 7

Accepted Solution

by:
_agj_ earned 63 total points
ID: 11840250
use an image/picturebox control.

u can then use the loadpicture function to load from a file.
0
 
LVL 8

Assisted Solution

by:mladenovicz
mladenovicz earned 62 total points
ID: 11840273
Dim p As IPictureDisp
Set p = LoadPicture("c:\pic.jpg")
Set Picture1.Picture = p
0
 
LVL 3

Expert Comment

by:nichia
ID: 11946575
Dennis?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA Shell can't Find Word document 11 92
Spell Check in VB6 13 112
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 51
Child Form in front 4 46
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now