CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2002
    Location
    Colorado
    Posts
    105

    Listbox Scrolling

    Does anyone know how to reference the scroll up and scroll down event for a listbox control? I want to place two buttons on my form, one that will execute the scroll up event for the listbox and the other for the scroll down event.

    Thanks,

    Larry

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Lightbulb

    LB_SETTOPINDEX message can be used to ensure that a list item is visible,,
    but I don't know any messages to scroll the List.
    I'll try to look it up .. interesting issue !!!

  3. #3
    Join Date
    Apr 2004
    Posts
    17
    hi,
    look in MSDN for Get/SetScrollInfo or if you don't want to send messages you can have your local position counter and by button click increase/decrease it and select the item in the listbox and this will automatically scroll the listbox up/down.

    kind of regards,
    typecast

  4. #4
    Join Date
    Mar 2002
    Location
    Colorado
    Posts
    105

    Thumbs up

    Thank you for your responses got it working with your helop

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured