I would like to select everyone when a user clicks on my web browser control.
I develop a winning form of app, and use web browser to display my information, because I can use html in words in style.
Right click context menu is not working for me. Its options are irrelevant to my app.
But context menu has been created after a selection, I want to keep copy, cut, paste options.
I can already select all:
getCurrentBrowser (). Document.execCommand ("SelectAll", correct, empty); I would like to do this in the event of a right click of the web browser?
handle mousedown event: WebBrowser.Document.MouseDown + = New HTMLElementEventHandler (Document_MouseDown); and make sure the user presses the right button , then select All: Zero DocumentMouseDown (Object Sender, HtmlElementEventArgs e) {if (e.mousebuttonpress == mousebutts.write) {webBrowser.Document.ExecCommand ("SelectAll", correct, empty); }}
Comments
Post a Comment