Re: Listbox scroll problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have a listbox which has items added to it progressively as user entry progresses. Whenever it is full, the scroll bar appears as expected. However, I have to operate the scroll bar to read the latest entry. How can I arrange things so that the last entries are always showing, ie the early entries disappear off the top (and can be brought back by scrolling if inspection is needed)?

Whenever you want to place the selection on the last item of the ListBox, simply execute this code...

List1.ListIndex = List1.ListCount - 1

Rick

.



Relevant Pages

  • Re: Listbox scroll problem
    ... I have to operate the scroll bar to read the latest entry. ... entries disappear off the top (and can be brought back by scrolling if ... You'll need to precalc the number of visible rows, ...
    (microsoft.public.vb.general.discussion)
  • Listbox scroll problem
    ... I have a listbox which has items added to it progressively as user entry ... progresses. ... I have to operate the scroll bar to read the latest entry. ... entries disappear off the top (and can be brought back by scrolling if ...
    (microsoft.public.vb.general.discussion)
  • Re: Listbox scroll problem
    ... progresses. ... I have to operate the scroll bar to read the latest entry. ... things so that the last entries are always showing, ...
    (microsoft.public.vb.general.discussion)
  • Re: Listbox scroll problem
    ... I have to operate the scroll bar to read the latest entry. ... Whenever you want to place the selection on the last item of the ListBox, ... real strength of the NewIndex property is for when you want to identify the latest entry added to a ListBox with its Sorted property set to True. ...
    (microsoft.public.vb.general.discussion)
  • Re: Scroll bar
    ... You could add a Data Validation to cell B1 which would show a list of ... values, but until you had selected the value, the entry in C1 would not ... C1) will change while I am moving the scroll bar. ...
    (microsoft.public.excel.misc)