Solved

Storing an image in a variable

Posted on 2004-08-19
6
145 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
Comment Utility
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
Comment Utility
Dim p As IPictureDisp
Set p = LoadPicture("c:\pic.jpg")
Set Picture1.Picture = p
0
 
LVL 3

Expert Comment

by:nichia
Comment Utility
Dennis?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…

763 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