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:)

Recommended Answers

All 3 Replies

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ListBox1.Items.Clear()
    End Sub

that worked!
Thanks a lot.

-Josh

Thank you alot :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.