I am working on an ActiveX control that creates an array of labels. If the array of labels becomes larger than the control, I want to display a scrollbar within the control. Here is my code:
I stepped through this code, and the scrollbar will not accept the value. After VB runs the HScr.Visible = True line, it is STILL set to false.Code:If lbl(lbl.Count - 1).Left + lbl(lbl.Count - 1).Width <= UserControl.Width Then 'The control is too big and needs to be reduced UserControl.Width = lbl(lbl.Count - 1).Left + lbl(lbl.Count-1).Width Else 'The control is too small, show the scroll bar HScr.Visible = True End If![]()
![]()
Needless to say, this is the most annoying thing EVER!
Please help.....please




Reply With Quote