html viewer right click disable option in silverlight

Posted by balajirnaukri-12656 under Silverlight on 4/20/2012 | Points: 10 | Views : 1830 | Status : [Member] | Replies : 3
In silverlight I want to disable the right click option in the silverlight I do want anyone to copy content in the page.Can anyone help me regarding this.

Thanks and Regards
Balaji.R
ASP.NET Devloper
Solve-IT corp



Responses

Posted by: Vuyiswamb on: 4/21/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
hi

You can copy data only behalf of your ser in the Clipboard. lets say i have a label in my page, so i will copy all content of the Lal to a clipboard like this

Clipboard.SetText(label1.Content.ToString()); 


Thank you for posting at Dotnetfunda
[Administrator]

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: balajirnaukri-12656 on: 4/23/2012 [Member] Starter | Points: 25

Up
0
Down
I Know that we can disable the rightclick option in silverlight but i want to disable the right click option in the html viewer available in the silverlight.So I need help regarding this can anyone help me out.

Thanks and Regards
Balaji.R
ASP.NET Devloper
Solve-IT corp

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: balajirnaukri-12656 on: 4/23/2012 [Member] Starter | Points: 25

Up
0
Down
It is very vast in silverlight to find out a particular code

Thanks and Regards
Balaji.R
ASP.NET Devloper
Solve-IT corp

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response