• Advertisement
Sign in to follow this  

[.net] How to scroll 2 textBoxes at the same time?

This topic is 3660 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I have two textBoxes. I want to make if I scroll one of the textBox, the other will also scrolled Horizontally or Vertically. So it is synchronized scrolling. And if I have functions to implement the synchronize scrolling, where should I call them from? I mean from what event I should call the functions since the textBox doesn't have events related to scrolling. I cannot change my textBoxes to richTextBox because I only have little time.. So I must keep using regular textBox. Does anyone have the solution in C# / Visual C++? Thank you very much.

Share this post


Link to post
Share on other sites
Advertisement
Quoth Machaira in one of your other numerous threads:

Quote:

You need to at least try to do something yourself instead of just posting multiple questions about the same thing and expecting people to do it for you.


I know you're saying you've tried on your own already, but have you really read the documentation? The docs for the .net framework, and winforms in specific, are quite extensive. The answers you need are found in the reference for the Textbox class (as I already told you in another thread).

Share this post


Link to post
Share on other sites
You mean the method TextBox.WndProc? I have read it but I don't have any idea how to use it and where I should put the functions if textBox doesn't have events that checks if the V / H scrollbar has been moved..


Thank you.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement