Add Scrollbar Control to my form
-
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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