Solved

Run-time changing picture in picture-box control..

Posted on 2004-08-18
1
155 Views
Last Modified: 2012-05-05
lstPictureFileName has a list of some .BMPs

Private Sub lstPictureFileName_Click()

  PictureBoxControl1 = <      lstPictureFileName      >

End Sub

How can I make this work?  I want click on the file I want from lstPictureFileName to display it in PictureBoxControl1.  

Thanks,
0
Comment
Question by:Mike Eghtebas
1 Comment
 
LVL 19

Accepted Solution

by:
Shauli earned 250 total points
ID: 11837163
Private Sub lstPictureFileName_Click()
PictureBoxControl1.Picture = LoadPicture(lstPictureFileName.List(lstPictureFileName.ListIndex))
End Sub

Just make sure that lstPictureFileName contains the full path & file name of the image you want to load.

S

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maro to copy and paste from one worksheet to another based on a condition 11 53
VB6 ListBox Question 4 42
How to read File Date Created using VB6 8 38
RUNRMTCMD from AS/400 12 44
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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

785 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