Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

860 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