dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to unload all items in a listbox

Hybrid View

  1. #1
    Join Date
    Jul 2004
    Posts
    61

    How to unload all items in a listbox

    How would I take all of the values out of a listbox to store it into one variable? Would I use a ArrayList and a FOR Loop?

  2. #2
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    or just an array and a loop. Do while, etc. You using vb.net or c#?

  3. #3
    Join Date
    Jul 2004
    Posts
    61

    Loops

    I'm using VB.net. I'm trying to get all of the e-mail addresses out of the listbox, so that I can send out a newsletter to everyone on the list.

    How would the code look for an example?

  4. #4
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    Just loop though the list box, just use a for loop and incriment the index and run the email code for it. No need to take the values out.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles