webbrowser copy and paste...

S

Supra

using webbrowser control. i am not getting thing to work with copy and
paste, but select all work fine .

for copy event
Private Sub MenuItem24_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem24.Click
AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_COPY,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)
End Sub

for paste event
Private Sub MenuItem23_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem23.Click
AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_CUT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)
End Sub
 
G

Guest

Hi Supra,

Can you please help me out. I want to do Select All operation which i am not able to perform. Can you please send me the code snippet on (e-mail address removed). Its very urgent. Thanks.
using webbrowser control. i am not getting thing to work with copy and
paste, but select all work fine .

for copy event
Private Sub MenuItem24_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem24.Click
AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_COPY,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)
End Sub

for paste event
Private Sub MenuItem23_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MenuItem23.Click
AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_CUT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)
End Sub

User submitted from AEWNET (http://www.aewnet.com/)
 
P

pazarbasi

IHTMLDocument2::execCommand can do copy and paste. ExecWB does not
perform that task anymore (I dont know why). i don't know vb. you need
to get IHTMLDocument2 interface of the object, then perform execCommand
of returned IHTMLDocument2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top