Posted 19 years ago
by GavinK151
![Avatar](https://secure.gravatar.com/avatar/a4dfe3553b3a9cf467c2b3c00ebf5309.jpg?s=64&d=identicon&r=g)
hi,
I need to position the cursor and highlight a section of text programatically but cant seem to figure it out.
I used to use a plain old textbox for this using:
blah.Selection.SelLength = 590;
blah.Selection.SelEnd = 890;
How can I do the same thing with the SyntaxEditor? Its probably obvious so sorry for dumb questions :-)
I know about Caret.Offset but it seems to have no visual result though querying the position after using Caret.Offset does show it has moved.....
thanks!
I need to position the cursor and highlight a section of text programatically but cant seem to figure it out.
I used to use a plain old textbox for this using:
blah.Selection.SelLength = 590;
blah.Selection.SelEnd = 890;
How can I do the same thing with the SyntaxEditor? Its probably obvious so sorry for dumb questions :-)
I know about Caret.Offset but it seems to have no visual result though querying the position after using Caret.Offset does show it has moved.....
thanks!