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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top