Results 1 to 2 of 2

Thread: No Sense!!!

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Location
    Boston, MA
    Posts
    52

    Angry 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. Needless to say, this is the most annoying thing EVER!

    Please help.....please

  2. #2

    Thread Starter
    Member
    Join Date
    May 2000
    Location
    Boston, MA
    Posts
    52

    Immediate Window

    Here is a cut-and-paste from the immediate window:

    Code:
    hscr.Visible = True
    print hscr.Visible
    False

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width