Home All Groups Group Topic Archive Search About

Selecting text in an MSHTML component

Author
25 Mar 2005 3:31 PM
Blake
Hello,

I am using an MSHTML component to allows for HTML editing in my
application.  I am trying to integrate this component with a spell
checker component that I am using, and I would like to be able to
highlight the misspelled word in the MSHTML component as I go along
doing the spell check.

Is there any way to programmatically change the text selection in the
MSHTML component?  I would like to be able to set the selection start
and length just like you can do for a RichTextBox.

Thanks for your help,

Blake

Author
26 Mar 2005 10:54 AM
Tim Anderson
"Blake" <blakebirkenf***@gmail.com> wrote in message
news:1111764687.404945.326010@g14g2000cwa.googlegroups.com...

> Is there any way to programmatically change the text selection in the
> MSHTML component?  I would like to be able to set the selection start
> and length just like you can do for a RichTextBox.

James Hancock was working on this for the HtmlEditor (I don't know if that
is the one you are using).

See the discussion forum; try searching for Selection.
http://itwriting.com/phorum/list.php?f=3

Tim
How much memory does my .NET app use?
http://www.itwriting.com/dotnetmem.php

AddThis Social Bookmark Button