I have a form with webbrowser control ,where i am coping all the TEXT(not html) data to clipboard
For this the code snippet is :-
webBrowser2.Document.ExecCommand("SelectAll", false, null);
webBrowser2.Document.ExecCommand("Copy", false, null);
I have written the above code under webBrowser2_DocumentCompleted .
The problem is that the webpage in webbrowserControl appears with selection. I want to clear that selection after copy operation.
Is there a way to do this or a command such as
webBrowser2.Document.ExecCommand("ClearSelection", false, null); //This doesn't work