I have developed the vsto template in C# in which,i have added data validation for many fields in the excel sheet.If the user copy paste the content, those validations rules are overwrites and does not work. how can i restrict user to copy,paste,cut.**Is there any **other way to overcome this problem?
Following code should intercept Ctrl+V and effectively disable it
1.To disable the Paste Option(ctrl + v )
Application.OnKey("^v", "");
2.To enable the Paste Option(ctrl + v ) again
Application.OnKey("^v", Type.Missing);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.