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:)
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:)
Jump to PostPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ListBox1.Items.Clear() End Sub
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 :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.