Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Box or Picture Box, changing the properties

Status
Not open for further replies.

bighavlo

Programmer
Jul 14, 2003
19
0
0
US
I need to be able to switch the image shown in a picture box. How can I get a new picture into 1 single picture box. Is it possible to assign properties. Example:

If Employee selected is Bill, the imagebox will show Bill's Picture
If Employee selected is Mary, the image box will show Mary's Picture

Thanks much - Matt
 
Here's a couple of ways:

Picture1.Picture = LoadPicture(strFile)
or if you use an ImageList control
Picture1.Picture = ImageList1.ListImages(0).Picture

Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Works perfectly, Thanks again. Once again Tek-tips saves the day. - Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top