Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 28th, 2006, 10:29 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy image from webbrowser ctrl....

I am creating my own browser application using C# 2005. I use mshtml and webbrowser ctrl.


I want to allow user to copy any image(in a webpage) to the clipboard..How can I do that? Note that user just have to right click on an image, and the context menu provide an option called "copy image". I just dont know how to implemeent the copying of image to clipboard .

Currently, IE is not able to do that. But firefox can!!!!




 
Old May 28th, 2006, 10:30 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually I think I found the solution

The technique is to turn on the design mode of the html document using mshtml. Then copy it using execCommand("copy",false,null), then turn off the design mode again..


But this solution leads to another problem! yes i did copy the image, but the image doesnt go into the window clipboard, and I think it is stored in some sort of cache.....i want the image to copy to the window clipboard

how should I solve this?

 
Old June 4th, 2006, 03:39 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

nobody knows#65311;






Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy kodak image edit control's image to clipboard vishwanathduddilla Visual Studio 2005 0 November 3rd, 2008 10:10 AM
java script to prevent users to copy image... ethantinder Javascript How-To 3 May 23rd, 2008 12:52 PM
Copy a image file using exec function foka PHP How-To 1 May 29th, 2005 04:46 PM
Image copy amita VB Components 0 August 26th, 2003 10:59 PM
WebBrowser control atingoldy Beginning VB 6 1 June 16th, 2003 06:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.