Hi,
I´m using VB .NET 2003 and I´m trying to accomplish the following:
I want to be notified when a user scrolls the textbox horizontally.The TextBox is multi-line, no wordwrap and showing both scrollbars.
The reason I want to do this is to update a ruler that indicates the column number in the textbox. Therefore, if the text is scrolled horizontally, the column numbers must increase accordingly.
Is there any possible work around for this? I´m open to any method. Personally I was trying to capture the scroll event by overriding WndProc, but I can´t figure out which message to intercept.
Thank for your help!
Regards, Ruffnekk
---
Is it true that cannibals don't eat clowns because they taste funny?
I´m using VB .NET 2003 and I´m trying to accomplish the following:
I want to be notified when a user scrolls the textbox horizontally.The TextBox is multi-line, no wordwrap and showing both scrollbars.
The reason I want to do this is to update a ruler that indicates the column number in the textbox. Therefore, if the text is scrolled horizontally, the column numbers must increase accordingly.
Is there any possible work around for this? I´m open to any method. Personally I was trying to capture the scroll event by overriding WndProc, but I can´t figure out which message to intercept.
Thank for your help!
Regards, Ruffnekk
---
Is it true that cannibals don't eat clowns because they taste funny?