Solved

Storing an image in a variable

Posted on 2004-08-19
6
146 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

920 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

15 Experts available now in Live!

Get 1:1 Help Now