Hi All,
I have 2 listboxes (set to value list) which I transfer data between. After I move a record from ListboxA to ListboxB for example, I want to keep the selection on the next record down in ListboxA.
This isn't a problem as I can use
where (i) is the index of the record I want to select.
The problem is that after my code executes, when I press the down key to move down the list in ListboxA, the cursor jumps back up to the top of the listbox and highlights the first record.
I'd like the cursor to stay on the highlighted record and move down from there. (Like if I click on it with the mouse.)
I've had a good old search around but so far can't find what I'm looking for.
Can anyone help please?
I have 2 listboxes (set to value list) which I transfer data between. After I move a record from ListboxA to ListboxB for example, I want to keep the selection on the next record down in ListboxA.
This isn't a problem as I can use
Code:
Me.ListBoxA.Selected(i) = True
The problem is that after my code executes, when I press the down key to move down the list in ListboxA, the cursor jumps back up to the top of the listbox and highlights the first record.
I'd like the cursor to stay on the highlighted record and move down from there. (Like if I click on it with the mouse.)
I've had a good old search around but so far can't find what I'm looking for.
Can anyone help please?