Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollbars 1

Status
Not open for further replies.

tenbobmillionaire

Programmer
Jun 13, 2000
27
EU
I'm writing an application that will load controls to a form depending on number of records in a database. Can anyone tell me how to get the program to automatically add scrollbars to the form if the loaded controls extend below the bottom?
Thanks
Mick
 
Sure. Check out
It works very well.

Have fun.
VCA.gif

Alt255@Vorpalcom.Intranets.com
 
Hi,

'For each control that you are dynamically creating check if it is at the bottom of form.
If Ctl.Top + Ctl.Height >= Form1.Height Then
'Show scrollbars or load them dynamically.
VScroll1.Visible = True
Else
VScroll1.Visible = False
End If

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top