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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to display several images in picture boxes?

Status
Not open for further replies.

deem4

Programmer
Joined
Jun 25, 2003
Messages
4
Location
MU
Hi everybody,
I am actually developing an application on vb 6.I am able to display only 1 image from the database in a picture box but I would like to display several images(in the form of thumbnail) at runtime on the form through a query statement. Can anyone please help me?
thks.
 
You can put a picture box control array within a frame...

Place a frame on your form, large enough to fit all thumbnails.

Drag a picturebox control on to the form, make it the size of 1 image, and place it within the frame.

Select the picturebox with the mouse and right click..
Copy the picturebox (VB will ask if you want a control array, say yes)

Paste as many picture boxes as you want within the frame.

You can link each one to your database using their DataSource and DataField properties or access each one
using picture1(I).picture = (where I = index property)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top