Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Add Scrollbar Control to my form

Add Scrollbar Control to my form

Scheduled Pinned Locked Moved Visual Basic
help
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wael Hawari
    wrote on last edited by
    #1

    hi everybody, plz if any one could help me in this pb i need to add a scrollbar to my form & i want to activate them, i mean that i want when i press on the horizontal scrollbar, my form start to move. can anyone help me plz on this i be very thankfull. waelhawari

    D 1 Reply Last reply
    0
    • W Wael Hawari

      hi everybody, plz if any one could help me in this pb i need to add a scrollbar to my form & i want to activate them, i mean that i want when i press on the horizontal scrollbar, my form start to move. can anyone help me plz on this i be very thankfull. waelhawari

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Well, it's possible, but a bit of a pain to handle, depending on what you're doing with them. If all you're doing is putting a bunch of controls on the form and trying to move them around because the form is too small to show them, you're really wasting your time. All you need to do is drop a Panel control on the form, dock it so it takes up the entire surface of the form, set its AutoScroll property to True, then put all your controls on the panel. It takes care of moving everything around for you! Dave Kreskowiak Microsoft MVP - Visual Basic

      W 2 Replies Last reply
      0
      • D Dave Kreskowiak

        Well, it's possible, but a bit of a pain to handle, depending on what you're doing with them. If all you're doing is putting a bunch of controls on the form and trying to move them around because the form is too small to show them, you're really wasting your time. All you need to do is drop a Panel control on the form, dock it so it takes up the entire surface of the form, set its AutoScroll property to True, then put all your controls on the panel. It takes care of moving everything around for you! Dave Kreskowiak Microsoft MVP - Visual Basic

        W Offline
        W Offline
        Wael Hawari
        wrote on last edited by
        #3

        Hi again In fact, yes i need to put a lot of listbox control & the form is to small, so is there is anyway to do that. i need help on this plz, it's so urgent. 10x a lot for replyin. waelhawari

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          Well, it's possible, but a bit of a pain to handle, depending on what you're doing with them. If all you're doing is putting a bunch of controls on the form and trying to move them around because the form is too small to show them, you're really wasting your time. All you need to do is drop a Panel control on the form, dock it so it takes up the entire surface of the form, set its AutoScroll property to True, then put all your controls on the panel. It takes care of moving everything around for you! Dave Kreskowiak Microsoft MVP - Visual Basic

          W Offline
          W Offline
          Wael Hawari
          wrote on last edited by
          #4

          Hi again In fact, yes i need to put a lot of listbox control & the form is to small, so is there is anyway to do that, i am using a visual basic 6 platform. i need help on this plz, it's so urgent. 10x a lot for replyin. waelhawari

          D 1 Reply Last reply
          0
          • W Wael Hawari

            Hi again In fact, yes i need to put a lot of listbox control & the form is to small, so is there is anyway to do that, i am using a visual basic 6 platform. i need help on this plz, it's so urgent. 10x a lot for replyin. waelhawari

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            VB6?? Yikes... The only other usable container control, IIRC, is the PictureBox. There is no Panel control like there is in .NET. If you have that many controls on the form, you REALLY need to rethink your UI. Break down what each part of this form does into smaller parts and dedicate them to their own forms. I direct you to the Official Guidelines for User Interface Developers and Designers[^]. This describes the concepts behind a good user experience. Dave Kreskowiak Microsoft MVP - Visual Basic

            W 1 Reply Last reply
            0
            • D Dave Kreskowiak

              VB6?? Yikes... The only other usable container control, IIRC, is the PictureBox. There is no Panel control like there is in .NET. If you have that many controls on the form, you REALLY need to rethink your UI. Break down what each part of this form does into smaller parts and dedicate them to their own forms. I direct you to the Official Guidelines for User Interface Developers and Designers[^]. This describes the concepts behind a good user experience. Dave Kreskowiak Microsoft MVP - Visual Basic

              W Offline
              W Offline
              Wael Hawari
              wrote on last edited by
              #6

              Any way, it's ok 10x a lot for replyin.. i will use i pictureBox & i will put the Scrollbar on it. 10x a lot again waelhawari

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups