Adding scroll bars to a form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdraceil
    New Member
    • Jul 2007
    • 236

    Adding scroll bars to a form

    Is it possible in vb6.0 to add scroll bars to a form,so that its length and width are increased?
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    VB does not support that .

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Originally posted by vdraceil
      Is it possible in vb6.0 to add scroll bars to a form,so that its length and width are increased?
      Hello,
      It can be done here is a demonstration try this.

      Sorry
      I have lost it anyway anytime i ll find i ll sen dyou.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        I don't believe you can exactly do it, but you could simulate it. There certainly are horizontal and vertical scrollbar controls you can place on the form, and when they are changed by the user you could shift things around so that it looks as though the form is scrolling.

        One very simple technique would be to place all of the controls in a large picturebox, and move that when the scrollbars are used.

        Comment

        • Ali Rizwan
          Banned
          Contributor
          • Aug 2007
          • 931

          #5
          Originally posted by vdraceil
          Is it possible in vb6.0 to add scroll bars to a form,so that its length and width are increased?
          Killers idea i snot bad try to do it.
          Place a picture box in form.
          Now create some controls in picture box
          Place a scrollbar Horizental
          Set scrollbar max=1000
          And write this code

          Code:
          Picture1.left=HScroll1.Value
          You will see that the controls are moving

          GOODLUCK
          ALI

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Here's a tip, though. Don't put the scroll bar inside the picturebox. :)

            I tried it. The results are amusing, but not very useful.

            Comment

            Working...