Sign in to follow this  
antareus

[.net] Scrolling textboxes

Recommended Posts

I think I'm missing something really basic here, but I'm sketching out a simple hex dump control. I plopped two textboxes and a vertical scroll bar down. The hexadecimal view can be on the left and the ASCII on the right, with the scroll bar moving both of them. I can't find any way to programmatically scroll the textboxes, however. Do I have to P/Invoke?

Share this post


Link to post
Share on other sites
There is no direct way to set the scrollbar position of the text box. However, you can set the cursor position and have it scroll to cursor. The only other option is to use PInvoke and scroll it yourself.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this