Vscroll VB5.0 
Author Message
 Vscroll VB5.0

Hi there!

Standard list control in vb50.

Is there possible to now when the vscroll stop when using mouse and
click vscroll down arrow, and perhaps the thumbnail draging.  Message
hooking???
With up/down key i use (listindex and listcount) to now when i reach the
end, but with mouse and click on the arrow down?????

This is because when the scroll stop (End of list), i must check for
more data, and
then list.additem more if this is nessesary.

thanks!!

Roy Nesholen



Mon, 19 Mar 2001 03:00:00 GMT  
 Vscroll VB5.0
Compare the TopIndex property against the ListCount property and the number
of items which your box displays at any one time. For example, if the size
of your List Box causes it to display 5 items at a time, then use the code:-

If (List1.TopIndex + 5) = List1.ListCount then .....

This code should go in the ListBox Scroll Event.

Hope this helps.

Mike

Quote:

>Hi there!

>Standard list control in vb50.

>Is there possible to now when the vscroll stop when using mouse and
>click vscroll down arrow, and perhaps the thumbnail draging.  Message
>hooking???
>With up/down key i use (listindex and listcount) to now when i reach the
>end, but with mouse and click on the arrow down?????

>This is because when the scroll stop (End of list), i must check for
>more data, and
>then list.additem more if this is nessesary.

>thanks!!

>Roy Nesholen



Tue, 20 Mar 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Vscroll VB5.0

2. Keeping VScroll.Value=VScroll.max

3. Text box with vScroll in VB5

4. Help for VScroll control in VB5

5. VScroll control VB5

6. Capturing VScroll and WndProc

7. Help Creating a useful VScroll bar

8. VScroll-problem

9. Scroll Bars (vscroll) an over coming the 32K restriction

10. Strange VScroll

11. Vscroll in listbox

12. VScroll Event

 

 
Powered by phpBB® Forum Software