469,603 Members | 2,069 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

Remove multiple selected items listbox

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.
Jul 19 '05 #1
3 19413
http://www.aspfaq.com/5002


"darren" <da**********@hotmail.com> wrote in message
news:02****************************@phx.gbl...
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.

Jul 19 '05 #2
www.aspfaq.com/5002

Ray at work

"darren" <da**********@hotmail.com> wrote in message
news:02****************************@phx.gbl...
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.

Jul 19 '05 #3
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.
.

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by bill yeager | last post: by
2 posts views Thread by Peter | last post: by
1 post views Thread by sab | last post: by
10 posts views Thread by ads | last post: by
9 posts views Thread by Bob Malcoprs | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.