Link to home
Start Free TrialLog in
Avatar of MasseyM
MasseyM

asked on

VB RichText Box

Ok, I have a RichText Box and I want to locate the Current Row and Column.

Row (Line number) is: RT.LineFromChar(RT.SelStart)

What is the Col (Current Character Position)?  It is not RT.SelStart
Avatar of MAVERICK
MAVERICK
Flag of United States of America image

Create a loop For..next loop  between the first character and the current character...Using the GetlinefromChar locate the first character in that lines position ... subtract and thats the column value.... Oh and getLinefromchar is the row....

If you need full code... Suggest you increase the points.....But I'll have a look.....


 
Avatar of MasseyM
MasseyM

ASKER

I want full code... I have the points...

BTW, this must be on-the-fly... I am not sure a loop will work...

ASKER CERTIFIED SOLUTION
Avatar of MAVERICK
MAVERICK
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MasseyM

ASKER

Maverick!  Marvelous job... Exactly what I wanted...

I have about 200 points waiting to be returned... I will post a question in what ever category you wish as soon as I get my points back...

Just tell me where (I will give another 150).

Thanks!