954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

List Box Items Remove All??

Hello,
I have a listbox in my program and I want the user to be able to remove all Listbox Items with the click of a button.

I Figured this would work,

Listbox1.Text = ""


But I Guess that doesn't work. Any Help would be awesome:)

Joshua Kidd
Junior Poster
108 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
 
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ListBox1.Items.Clear()
    End Sub
codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 

that worked!
Thanks a lot.

-Josh

Joshua Kidd
Junior Poster
108 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
 

Thank you alot :)

mhosny
Newbie Poster
13 posts since Mar 2011
Reputation Points: 17
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: