I have an image inside a scroll viewer and buttons to zoom in and zoom out. Now when the image is zoomed, i want to be able to click on the image and drag in any direction as if i was scrolling in those directions. How to do this? thanks.
I have a Winforms app containing a RichTextBox. How can I determine how many lines of text are displayed, currently visible? Reason: I want to scroll the caret to the middle of the RichTextBox. ...