Visual Basic/VB >> Stored images in an array (is it possible?)

by giannis » Wed, 08 Oct 2003 16:31:26 GMT

Is possible to store image files in an array's
elements? And how can read these data from
the array so open these files ?
Is it possible ?





Visual Basic/VB >> Stored images in an array (is it possible?)

by Rub Vig » Wed, 08 Oct 2003 18:07:28 GMT


You could use an array of tdPictureelements:

Dim arrPictures(1 To 2) As StdPicture
Set arrPictures(1) = LoadPicture("c:\folder\file1.jpg")
Set arrPictures(2) = LoadPicture("c:\folder\file2.jpg")

Now, you could use the array elements as pictures:

Set Image1.Picture = arrPictures(1)
Set Picture1.Picture = arrPictures(2)

Regards,

Rub Vig
Microsoft MVP Visual Basic





Similar Threads

1. Is this possible or am I crazy?

Hi Everyone,
I work at a telephone call site. Currently we use a freeware program that 
uses the Net Send command in conjunction with a database that allows us to 
send instant pop up messages to individuals and preassigned groups of people. 
The problem I am running into is that every time IT pushes out an update I 
have to run around to apx 100 machines and reinstall the program. What I am 
wondering is do any one think it would be possible to convert this to a web 
page? I am a newbie to Front Page and know enough about Access to make me 
dangerous. :) I do have a couple of Front Page books to help me if any one 
thinks this project is even possible. What I visualize is a drop down box to 
select recipients an input area for the message and a button when clicked 
would send the message.
Any ideas would be greatly appreciated.
Have a GREAT day and weekend everyone!!!
Deb

2. Is it possible store Word 2007 Macros in Normal.doc - Word VBA

3. Is it possible to retrieve an image from DataSet

H

I need to be able to retrieve an image from MyDataRow(icture Since I am using web service to get the data set I can use SqlClient.SqlDataReader. Is there a way

Any help will be appreciate

Thank

A

4. I am new to VBA and am stuck - Excel

5. Drag an image possible in an hta?

Is it possible to have a graphical image load in an HTA that you can drag 
around the screen?

If so, could someone please post a link to a page that explains how to do 
this?

For now, all I want to do is be able to drag an image anywhere on screen and 
have it stay where I drop it...

Thanks much in advance...

6. Use VB .NET to store and retrieve images to Access 2000

7. Help storing and Retrieving Images asp.net using vb.net

8. Store an image - VB.Net