Remove multiple selected items listbox

Discussion in 'ASP General' started by Adrian Forbes, Aug 7, 2003.

  1. I know I shouldn't answer but I'm an attention whore :)

    While ListBox1.SelectedItems.Count > 0
    ListBox1.Items.Remove(ListBox1.SelectedItem)
    End While

    >-----Original Message-----
    >How, using asp.net (vb.net), can I remove multiple
    >selected items from a listbox. Everything I try does not
    >seem to work. Thanks in advance.
    >.
    >
     
    Adrian Forbes, Aug 7, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ryan Ternier
    Replies:
    0
    Views:
    480
    Ryan Ternier
    Oct 27, 2005
  2. Iain
    Replies:
    3
    Views:
    968
  3. K B
    Replies:
    2
    Views:
    698
  4. Jason L Lind

    ListBox Programaticly Set Multiple Items as Selected

    Jason L Lind, Apr 11, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    151
    Jason L Lind
    Apr 11, 2006
  5. Suresh
    Replies:
    1
    Views:
    143
    Richard Cornford
    Apr 16, 2004
Loading...

Share This Page