VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get Row and Column positions Fast in a Textbox or Rich Textbox (clean-up)

David Ross Goben  (15 Submissions)   Windows API Call/Explanation   Intermediate   Wed 3rd February 2021

This short article will show you how you can EASILY obtain an accurate logical text row count, plus the logical row and column number the cursor is located at in a Textbox or Rich Textbox. Line wraps that will force several additional displayed lines are no problem at all, and the returned indexes will account for them. Plus, afterward, I will show you how you can quickly dress up a selection in a textbox so that it is not always at the bottom of the textbox. Because these textbox controls have to manage these row and column counts and indexes anyway, why not let THEM do ALL the work for you.

Rate Get Row and Column positions Fast in a Textbox or Rich Textbox (clean-up) (10(10 Vote))
Get Row and Column positions Fast in a Textbox or Rich Textbox (clean-up).bas

Get Row and Column positions Fast in a Textbox or Rich Textbox (clean-up) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters