Results 1 to 3 of 3

Thread: [RESOLVED] Use of horizontal scroll bar

  1. #1
    New Member
    Join Date
    Aug 12
    Posts
    7

    Resolved [RESOLVED] Use of horizontal scroll bar

    Am stuck with the problem here.Can any1 please help me out...
    Text1.FontSize = HScroll1.Value
    This statement in the program is giving me a problem.Do i have to set any properties of Hscollbar..The rest code is working fine..
    Attached Files Attached Files

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 04
    Location
    New Amsterdam
    Posts
    23,657

    Re: Use of horizontal scroll bar

    Try some thing as simple as this:
    Code:
    Option Explicit
    
    Private Const MAX_SIZE As Long = 72
    Private Const MIN_SIZE As Long = 6
    
    Private Sub Form_Load()
        HScroll1.Min = MIN_SIZE
        HScroll1.Max = MAX_SIZE
        HScroll1.SmallChange = 2
        HScroll1.LargeChange = 6
        HScroll1.Value = Text1.Font.Size
    End Sub
    
    Private Sub HScroll1_Change()
        Text1.Font.Size = HScroll1.Value
    End Sub
    However, sample above is incomplete - what you need also is resize textbox itself (I left this part for you to figure).

  3. #3
    New Member
    Join Date
    Aug 12
    Posts
    7

    Re: [RESOLVED] Use of horizontal scroll bar

    Thank u

Posting Permissions

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