How can i clear a Listbox-Value with VB.net?

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi,

I want to clear the value of a listbox with VB.net.

The command "listbox.items.clear()" has no results,
the listbox-value doesn't change. Do I havte to
refresh die listbox to see any changes?

cu

Tom
 
Call your Listbox.Items.Clear(), and the refresh should work
automatically...

If you're doing a lot of processing work after the clear command, for
example, and the current method hasn't finished executing (i.e. not giving
the UI a chance to refresh), but you want an immediate refresh then call
this.Refresh() to complete refresh the current screen.
 
Back
Top