Solved

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

Posted on 2004-08-18
1
154 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

757 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

18 Experts available now in Live!

Get 1:1 Help Now