Solved

Storing an image in a variable

Posted on 2004-08-19
6
150 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

707 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