Results 1 to 3 of 3

Thread: Text Box's and Scroll Bar's

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    3

    Text Box's and Scroll Bar's

    Right.. just a quick and unimportant question this time..

    How do get a textbox to have scrollbars only as it needs them..?
    I don't mean shadowed out Scrollbars.. I mean Scrollbars appear when the text goes past the amount of space in the box.. then dissapear when there's room for all the text again.

    It seems idiotically simple.. but I can't seem to get it however hard I try!

    Cheers.

    Millh0u5e | Is he strong? Listen bud.. he's got radioactive blood!

  2. #2
    bindui
    Guest
    If u r not satisfied by the shadowing of the scroll bar which comes by setting scrollbar property to verticalscrollbar.

    Then use the scrollbar control and connect both text and scrollbar

    Itty

  3. #3
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Um just check if the length of the string is too long to be displayed in the textbox, and if it is too long, then set the .Visible property of the scrollbar to True, else False.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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