Link to home
Start Free TrialLog in
Avatar of RichW
RichWFlag for United States of America

asked on

SelectionStart Not Setting

I am trying to set the SelectionStart of a TextBox and it doesn't set.

For example, if Text1.SelectionStart = 15 and I want it to be 20

Text1.SelectionStart = 20

does not work.  The value is still 15.

I don't believe this property is ReadOnly.

Is there something I am missing?

Thanks

RichW
Avatar of RichW
RichW
Flag of United States of America image

ASKER

The TextBox is not set to ReadOnly.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
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 RichW

ASKER

Makes sense.  Can you tell me how I can set the cursor to beyond the last character?  I'll up the points.
Avatar of RichW

ASKER

Thanks Idle Mind.  I was able to figure something out once you pointed out the last available position.

Thanks again.

RichW