how would you clear a listbox, like with a button.
How do you add an item? You call the Add method of its Items collection. So, how do you suppose you clear the items?
Why is my data not saved to my database? | MSDN Data Walkthroughs VBForums Database Development FAQ My CodeBank Submissions: VB | C# My Blog: Data Among Multiple Forms (3 parts) Beginner Tutorials: VB | C# | SQL
Removes all listbox items vb Code: ListBox1.Items.Clear() Removes a single selected listbox item vb Code: ListBox1.Items.Remove(ListBox1.SelectedItem)
ListBox1.Items.Clear()
ListBox1.Items.Remove(ListBox1.SelectedItem)
thanks Vexslasher!
Forum Rules