SyntaxFix
Write A Post
Hire A Developer
Questions
If you only want to clear the list box, you should use the Clear (winforms | wpf | asp.net) method:
ListBox2.Items.Clear()