listbox

  • Thread starter Anders Zuschlag
  • Start date
A

Anders Zuschlag

Hey
I have an ordinary listbox and I want to select all. So I do this:
Dim i As Long
For i = 0 To Ringe.ListCount - 1
Ringe.Selected(i) = True
Next

However this is taking quite a while, when there are a lot of lines in the
box.
I have found an sendmessage thing to use if it is a listview control but
that does not work in an ordinary listbox
Does anybody know if there is a better way to select all in a listbox.

Yours Anders Z
Denmark
 

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

Top