Listbox selected line mostly just below bottom of window



I think I'm just missing a call of some sort. I have a listbox. Then I sort the lines, select the line I want and redisplay the listbox using:

sendmessage( g_TagBrowse_HDlg, LB_SETCURSEL, C_LINE-1, 0);
RedrawWindow( window, 0, 0, rdw_Invalidate );

But sometimes my selected line is mostly just below the bottom of the window. (see image http://members.cox.net/deleyd2/misc/listbox.gif )

I'm relatively new to this so I assume the problem is I just need to make another call of some sort to get the line fully in view?
.



Relevant Pages

  • Re: ACC 2002: Sort a ListBox with no SQL rowsource
    ... >ListBox. ... Sort list box by column when column is ... Dim vGetWidths As Variant ... Dim iLoop As Integer ...
    (microsoft.public.access.formscoding)
  • Re: Sorting listbox contents
    ... Sort list box by column when column is right-clicked ... 'Install call to this code in the Mouse Down event of a listbox. ... Dim iLoop As Integer ... MsgBox "List box must use a query as it's row source" ...
    (microsoft.public.access.modulesdaovba)
  • Re: ACC 2002: Sort a ListBox with no SQL rowsource
    ... then sort the array. ... >algorythm to sort my listbox where my listbox does not ... >have a SQL statement or Query for it's RowSource; ... >>Dim vGetWidths As Variant ...
    (microsoft.public.access.formscoding)
  • Re: ACC 2002: Sort a ListBox with no SQL rowsource
    ... algorythm to sort my listbox where my listbox does not ... have a SQL statement or Query for it's RowSource; ... >>would like to do is sort the list Ascending order after ... >Dim vGetWidths As Variant ...
    (microsoft.public.access.formscoding)
  • Re: Sorting a table used in a form
    ... >a formfield that unprotected the document, ... >button to transfer the data to the listbox. ... >table in the document and do the sort. ... >> To speed up data entry, I want to be able to enter the ...
    (microsoft.public.word.tables)