RichTextBox Span method

S

SamSpade

The VB6 TextBox had a Span method to extend a selection.

Is there a similar capability in Dotnet?

I can't find it.


Thanks
 
C

CaribSoft

You have to get the ITextDocument of the richtextbox and call the
Selection.Expand(tomWord) method ,see the msdn docs for ItextDocument
interface.
 
S

SamSpade

Thanks, that works

CaribSoft said:
You have to get the ITextDocument of the richtextbox and call the
Selection.Expand(tomWord) method ,see the msdn docs for ItextDocument
interface.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top