473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

webbrowser copy and paste...

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_COP Y,
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

Nov 21 '05 #1
3 6411
Supra,

This is in my opinion an easier one. 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/de...xeccommand.asp

I hope this helps?

Cor
Nov 21 '05 #2
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 vi******@yahoo.com. 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_COP Y,
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/)
Nov 21 '05 #3
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.

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: clintonG | last post by:
I'd like to know if it is possible to reuse the WebBrowser control in a page? The idea being the retrieval of your.homepage that can then be converted to an image displayed in my.homepage where...
4
by: ljlevend2 | last post by:
I would like to implement common edit operations (i.e., Cut, Copy, Paste, Select All and Find) in a System.Windows.Forms.WebBrowser. Are there any methods or tools for doing so? Thanks, Lance
0
by: Chris Dangerfield | last post by:
Hi there, I am hoping that someone can point me in the right direction. I need to write an application, which allows me to display and navigate web pages. I no this is pretty simple,...
5
by: mabond | last post by:
Hi recently read a posting and reply about Excel processs still running after the Appliction.Quit was called. Thought I might be able to use the same...
2
by: Young | last post by:
Hi! I am writing a program to insert text into a textbox on webbrowser. Please let me know if you can help me. Using Visual Studio 2005(Visual Basic) I have a form with many textboxes on left...
0
by: John Guarnieri | last post by:
I have some code that I downloaded from Planet source code that will place all the links on a web page into a list box. When I use this code in my app it works on just the first web page when I...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
by: RobcPettit | last post by:
Hi, I have a webbrowser on a form. When I right click I can 'selectall' then copy and paste. Is there a way to do this programatically. Regards Robert
1
by: GS | last post by:
Sorry about the messy copy paste in the previous post for NewWindows3. It looked ok before posting but I found out the pasted "text" has a lot of junk when posted here is an more accurate and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.