Results 1 to 2 of 2

Thread: Using Scrollbar properties when its embedded on object???help!

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    39

    Post

    Is there a way to use the properties of , say, a vertical scroll bar that's part of a textbox?

    i've been trying to figure out a way you can interact with the scroll bar, but i can't find anything on it!

    if not, is it possible to make a seperate vertical scroll bar, and then somehow bind it to the textbox so the textbox will scroll up and down when you click corresponding arrows?

    Any help would be greatly appreciated! THanks very much.

    ~Dan

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    Yeah I think you can use at least one of those methods, although I've never done it before so I can't give you the code straight off. Try messing with some of the SetScroll API calls, and if that gets you know where, you can try binding a scroll bar to a text box, and have it move by manipulating the text box's SelStart property. If that's to akward or just doesn't do what you want, the final thing to do would try using the Print method in a picturebox, with the scroll bar moving the entire graphic in the direction of the scroll bar.

    Here's an akward idea, only if the text box you want to 'scroll' is going to hold a small amount of data. Put a textbox and a scrollbar in a picturebox, and have the scrollbar correspond to the textbox's height, and have the number of lines in the textbox correspond to the max value of the scrollbar.

    Hope those are of any help to you.

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