I have a webbrowser control and I am able to get the selected word by the user.
I am saving this word in a file and with it I am also saving its byte offset and length.
Lets says i have some text in my Web browser control as “Hello Hey Hello” lets say the user has selected last hello.
Now that word is saved with me along with other info like its length etc.
I need to provide a feature to highlight the selected word when the user reloads the file and sends me that word along with its length and byte offset
Is there any way to do it.
you’re going to need to import the Microsoft.mshtml assembly reference if you haven’t already, and add
here is a snippet that might be helpful also: