Image equivalence to PictureBox

adude

Member
Joined
Aug 19, 2003
Messages
22
Hi, Im creating a program (VB.NET 2003) that needs to display a list of pictures (thumbnail size) (like one of the digital photo album programs). Ive tried using PictureBoxes but theyre painstakingly slow (especially when resizing, I have to adjust the location of all the thumbnails).

Ive experimented with DrawImage in Graphics, but how can I access each drawn item in the Graphics object. For instance, with PictureBoxes, I could say:

Code:
dim ctrl as Control

For Each ctrl in Me.controls

  If TypeOf ctrl is PictureBox Then

     MsgBox(PictureBox.Location.toString())

  End If

Next

Although this is a pretty dull example, how can I access properties, methods, events of drawn items in Graphics? Do they even have props, methods, and events? For example, I couldnt find anything like a getImages() or getItems() or Items in the Graphics class.

I also tried creating an ArrayList of Images... but its properties are all ReadOnly... (I was trying to double the size of the first image in the graphics as a test)

Thanks a lot.
 
Back
Top