Copy and paste doesn't work...........

S

Supra

i am using webbrowser control using visual studio 20003. i am not
getting any copy and paste working.
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
does ne 1 know how to do it?
regards,
 
C

Cor Ligthert

Supra,

Your answered your own message in the language.vb group, however I placed
this answer at it, which seems to me easier.

It needs an reference to MSHTML no import.

This is the save as look for the other commands like cut, copy and paste and
others to the link I show beneath it.
\\\
DirectCast(oDocument, mshtml.IHTMLDocument2).execCommand("SaveAS", False,
"c:\frame0.htem")
///

http://msdn.microsoft.com/library/d...uthor/dhtml/reference/methods/execcommand.asp

I hope this helps?

Cor
 

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