View Full Version : Controlling Scroll Bars


Geoff Codd
08-20-2004, 12:59 AM
Hi there,

I have a Main Form with 3 subforms, each of the three subforms have a Horizontal scroll bar, what i would like to do is that when you scroll with one of the scroll bars it moves the other 2 sub forms so that the columns in each are always lined up.

Any ideas anyone.

Thanks in advance
Geoff

meboz
08-20-2004, 01:57 AM
Place the other 2 subforms as subforms on subform A, but have the Parent fields still referencing the Main Forms link field

Just a stab in the dark...

Geoff Codd
08-20-2004, 02:04 AM
Thanks for the suggestion but that won't work, because i need it so that it doesn't matter what scrollbar you move all the forms move

thanks anyway
Geoff

WindSailor
08-20-2004, 03:14 AM
Don't really know... but here is my shot...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconhscrollbarvscrollbarcontrolsoverview.asp

I would assume you would have to make changes to the LargeChange and SmallChange Properties of each form involved in the proper sequence.