WebBrowser Selected [modified]
-
Hi Guys. I am working on a HTML editor. How do I retrieve the code from the selected element. e.g. The user selects some text on the HTML editor, how do I retrieve the code
p> the selected text /p>
Thank you
modified on Thursday, May 28, 2009 6:32 AM
-
Hi Guys. I am working on a HTML editor. How do I retrieve the code from the selected element. e.g. The user selects some text on the HTML editor, how do I retrieve the code
p> the selected text /p>
Thank you
modified on Thursday, May 28, 2009 6:32 AM
... maybe "whateverYourEditControlIsCalled.SelectedText" ?
There are three kinds of people in the world - those who can count and those who can't...
-
... maybe "whateverYourEditControlIsCalled.SelectedText" ?
There are three kinds of people in the world - those who can count and those who can't...
A webbrowser does not support SelectedText
-
A webbrowser does not support SelectedText
In your original post you said :-
jammmie999 wrote:
The user selects some text on the HTML editor
From which I guessed meant he was selecting some text area in the editor you're writing. However, if you're looking for a way to copy text from a browser window, including the HTML formatting tags that go with it, then I'm not too sure about that, as it's not an area I've looked at. I think (but may be wrong) that using drag and drop you might be able to specify that you want to keep HTML formatting. Possibly paste operations can do something similar.
There are three kinds of people in the world - those who can count and those who can't...