Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextBox column number

Status
Not open for further replies.

Ruffnekk

Programmer
Aug 2, 2005
249
DE
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top