Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have some HTML documents that I want to render to a Windows form using a referenced style sheet, after which I want to select (highlight) some text and then use a context menu to invoke a text manipulation process. I have been trying to use the WebBrowser control but while I can access the selected text I cannot determine the offset of the selection from the start of the document, which I need to allow me to process the selection within context.

I think mshtml is the wrong tool for the job. I don't need bells and whistles, just some rendered text, and a means of processing a selection. Other than styling, all of the DOM related, client side features are not required.

I'd appreciate any thoughts or pointers. .... Alan
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900