Results 1 to 6 of 6

Thread: Using Scroll Bar

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    52

    Using Scroll Bar

    How can I make that when I move Scroll bar would move entire form (What is on it) ?

  2. #2
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Re: Using Scroll Bar

    you mean a scrolling form
    __________________
    ________________0îîî___
    ___îîî0________(___)____
    __(___)_________) _/_____
    ___\_ (_________(_/______
    ____\_)_________________

  3. #3
    Lively Member
    Join Date
    Apr 2006
    Location
    Planet Earth
    Posts
    64

    Re: Using Scroll Bar

    VB Code:
    1. Private Sub Form_Load()
    2. With VScroll1
    3.     .Min = 1
    4.     .Max = 30000
    5.     .SmallChange = 100
    6.     .LargeChange = 1000
    7.     .Value = 1
    8. End With
    9.  
    10. End Sub
    11. --------------------------------------------------------------------------
    12.  
    13. Private Sub VScroll1_Change()
    14.  
    15. Frame1.Top = VScroll1.Value
    16.  
    17. End Sub
    I'm Still learning!
    satisfied/not satisfied, PLEASE TAKE SOME TIME TO rate me accordingly.
    Ur opinions helps me to be better!


    Appreciation Triggers Another Good Deeds.

  4. #4
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Re: Using Scroll Bar

    also make sure that vscroll1 doesnt reach 0 else form will be sort of useless to work upon
    __________________
    ________________0îîî___
    ___îîî0________(___)____
    __(___)_________) _/_____
    ___\_ (_________(_/______
    ____\_)_________________

  5. #5

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    52

    Re: Using Scroll Bar

    I thought how do I move down or up that what is in the form, not the whole form!

  6. #6
    Lively Member
    Join Date
    Apr 2006
    Location
    Planet Earth
    Posts
    64

    Talking Re: Using Scroll Bar

    the code that i gave you will not move the whole form, it will only move the frame which is the frame1 up and down. The idea is that, u put all your objects i.e. buttons, textbox, picturebox, etc in frame1. And you can scroll the frame up and down without even need to resize the form.
    I'm Still learning!
    satisfied/not satisfied, PLEASE TAKE SOME TIME TO rate me accordingly.
    Ur opinions helps me to be better!


    Appreciation Triggers Another Good Deeds.

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