ListBox's first shown item

  • Thread starter Zyrthofar Blackcloak
  • Start date
Z

Zyrthofar Blackcloak

Hi everyone
I have a listbox with more items in it than is printed on screen. I
need the index number of the first shown item to move another listbox
to the same position... Explained differently, the two listboxes have
the same number of items, and are linked and show the same portion to
the screen.

I have been having problems with a listbox in which we can drag&drop
items to different indexes, at the same time as being able to
double-click on an item... (we double-click, nothing happens, then at
the next click anywhere on screen, the double-click sub executes...)

the solution I found was using two listboxes, the left one used for
drag&drop operations and containing the index associated to the items
of the listbox to the right... But the problem occurs when I move the
second listbox... I want the first one to reflect the same portion...

any help or ideas would be appreciated (particularly concerning
coexistence of drag&drop and double-clicking within a single listbox)

thank you
 

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