Results 1 to 6 of 6

Thread: Label scrolling with scroll bar

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    343

    Label scrolling with scroll bar

    First off this is UserControl will make it so you have a label and you are able to scroll through the text of the label. I made this because I couldn't find it anywhere.
    its my first UserControl so don't go so hard on me. I know some parts could most likely be done a lot better but its the only way I knew how to do it..
    Simple code to scroll:
    Code:
        Dim cMax As Integer
        Dim cValue As Integer
        Dim cHeight As Integer
        
        cHeight = lblMessage.Height
        VScroll.Max = cHeight
        cValue = VScroll.Value
        
        lblMessage.Top = cValue - (cValue * 2)
    Attached code is the source. I hope you all enjoy
    Attached Files Attached Files
    Last edited by bluehairman; Feb 28th, 2008 at 10:44 AM. Reason: Removed Compiled Code

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