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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame and Scrollbar 1

Status
Not open for further replies.

longshot3001

Programmer
Apr 17, 2002
3
AU
I have currently created a frame which contains a several labels within it. My labels resize determining how many students are listed on the excel spreadsheet. The problem I have is when my labels become larger than my frame I would like to be able to scroll and view the rest of the labels information.
 
Hi longshot3001

Just set the scroll height to the value of the label height,
here is how;

With Me.Frame1
.ScrollBars = fmScrollBarsVertical
.ScrollHeight = Me.Label1.Height
End With


Hope this helps

rgrds
LSTAN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top