-
No Sense!!!
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:
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
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. :mad: :mad: :mad: Needless to say, this is the most annoying thing EVER!
Please help.....please
-
Immediate Window
Here is a cut-and-paste from the immediate window:
Code:
hscr.Visible = True
print hscr.Visible
False