Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2004
    Posts
    34

    Unanswered: Scroll the window via code

    Does anyone know of a way of when a button is pressed, the window scrolls the right, left, up or down. To explain more clearly, I want to have a form 500 wide, but the window will be 100 wide, then when a button is pressed it scroll 100 to the right, can this be done?!

  2. #2
    Join Date
    Jul 2003
    Location
    Michigan
    Posts
    1,941
    It's possible, but takes some pretty advanced coding using API calls.

    Go here -- http://www.lebans.com/hscroller.htm

    The VBA program contains a lot of API stuff. I used parts of it to scroll multiple subforms at the same time using 1 scroll bar on the bottom of the form, but you should be able to pick out the parts you need to do your task.
    Inspiration Through Fermentation

  3. #3
    Join Date
    Nov 2004
    Posts
    34
    Ah cheers, I thought it would involve API calls, but I wasn't sure which calls they would be. I've now decided to just use the setfocus command for each subform, it automatically moves to the subform so acheives the result I needed. Might get a little complicated though!

Posting Permissions

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