Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, I'm creating a program (VB.NET 2003) that needs to display a list of pictures (thumbnail size) (like one of the digital photo album programs). I've tried using PictureBoxes but they're painstakingly slow (especially when resizing, I have to adjust the location of all the thumbnails).

 

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

 


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 couldn't find anything like a getImages() or getItems() or Items in the Graphics class.

 

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

 

Thanks a lot.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...