Results 1 to 2 of 2

Thread: help adding selected items in list box to multi picturebox

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2011
    Posts
    1

    help adding selected items in list box to multi picturebox

    Hey guys! just new to VB and need help building simple program that i could print index pictures to 11x17 size paper. and came across with listbox multi items selected and wanted to add them to different picture boxes any coding would you suggest? thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: help adding selected items in list box to multi picturebox

    You can get the items selected in a ListBox using its SelectedItems collection, e.g.
    vb.net Code:
    1. For Each item As SomeType In myListBox.SelectedItems
    2.     'Use item here in whatever way is appropriate.
    3. Next
    If, for example, the item is the path of an image file, you could call Image.FromFile inside the loop.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width