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

  • Thread starter Thread starter Supra
  • Start date Start date
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,
 
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
 
Back
Top