Have you looked at the ScrollToCaret method of the textbox? One big disadvantage to using this method is that the object must have focus for it to work.
>Hi, everybody!
>
>I have two "multiline" textboxes on a WinForm. When the user click on the vertical scroll bar of one textbox, I need to make the other textbox scroll as well.
>
>What event is fired in such a situation?
>
>And how can I make the second textbox scroll programatically?
>
>TIA
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi