Solved

Can I show an image using Silverlight and prevent it from being copied?

Posted on 2011-02-21
5
403 Views
Last Modified: 2012-05-11
I hope to write a Silverlight and/or a Silverlight out of browser application involving certain images which can be viewed by certain users.

How can I disable the clipboard when a picture has the focus? Or remove the "Copy" menu item from the context menu on a right click on that image?

(I assume I will be running in the browser)

I don't want the user to copy the picture and thereby make the picture public.

Thanks,
newbieweb
0
Comment
Question by:newbieweb
  • 3
5 Comments
 

Author Comment

by:newbieweb
ID: 34946485
also, I guess I would also need to block Windows from enabling the PrtScrn feature as well.  Otherwise they willl take a picture of the entire window and carve out the picturte they want to see...

newbieweb
0
 
LVL 8

Accepted Solution

by:
Toxacon earned 500 total points
ID: 34946693
Check the clipboard content periodically when the window is active. If it suddenly contains an image, just discard the clipboard content.
0
 

Author Comment

by:newbieweb
ID: 34947034
> Check the clipboard content periodically when the window is active

Wouldn't I need to check it, say, 500 Milliseconds after every keystroke? Then I ensure that I delete the clipboard before they have time to copy it to MS Paint?

But i'sn't there a more direct way to block the feature?  I'd need to block "Save picture as..." as well.

I need to be able to force the use of my context menu when it's a JPG background, then remove certain options from that new menu I impose.

Do you konw how to do this?

newbieweb
0
 

Author Closing Comment

by:newbieweb
ID: 34948543
Thanks
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 34948557
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now