473,763 Members | 5,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MenuItem24.Clic k
AxWebBrowser1.E xecWB(SHDocVw.O LECMDID.OLECMDI D_COPY,
SHDocVw.OLECMDE XECOPT.OLECMDEX ECOPT_DODEFAULT )
End Sub

for paste event
Private Sub MenuItem23_Clic k(ByVal sender As System.Object, ByVal e
As System.EventArg s) Handles MenuItem23.Clic k
AxWebBrowser1.E xecWB(SHDocVw.O LECMDID.OLECMDI D_CUT,
SHDocVw.OLECMDE XECOPT.OLECMDEX ECOPT_DODEFAULT )
End Sub

Nov 21 '05 #1
3 6436
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(oDoc ument, mshtml.IHTMLDoc ument2).execCom mand("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_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MenuItem24.Clic k
AxWebBrowser1.E xecWB(SHDocVw.O LECMDID.OLECMDI D_COPY,
SHDocVw.OLECMDE XECOPT.OLECMDEX ECOPT_DODEFAULT )
End Sub

for paste event
Private Sub MenuItem23_Clic k(ByVal sender As System.Object, ByVal e
As System.EventArg s) Handles MenuItem23.Clic k
AxWebBrowser1.E xecWB(SHDocVw.O LECMDID.OLECMDI D_CUT,
SHDocVw.OLECMDE XECOPT.OLECMDEX ECOPT_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
1252
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 my.homepage would also include other content. -- <%= Clinton Gallagher, "Twice the Results -- Half the Cost" Architectural & e-Business Consulting -- Software Development NET csgallagher@REMOVETHISTEXTmetromilwaukee.com URL...
4
2499
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
842
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, however, it is why I want to do this which is where I need the help.
5
6582
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 (System.Runtime.InteropServices.Marshal.ReleaseComObject(exApplication)) to solve my problem but could not. Background : My app uses a WebBrowser control to display to the user the contents of an Excel spreadsheet.:
2
3658
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 side and webbrowser1 on right side. I will need to copy and paste that are in the form to the textboxes in webbrowser. I can put my cursor and put my cursor active in the textbox in browser. How can I put textbox1.text into currently
0
4029
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 click on a link of the first webpage then try to get the links on the new web page it will not populate the list box with any links from the new webpage. I think frames are the issue here even though I am unfamiliar with frames and what they...
0
5573
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
0
1046
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
5320
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 readable version according to msdn http://msdn2.microsoft.com/en-us/library/aa768337.aspx MSDN MSDN Library WebDevloperInternet Explorer Developer Hosting and ReUse WebBrowser Control Reference for Visual Basic Developer events
0
9564
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.