Exemple #1
0
 public static void OnPasteCommand(object sender, DataObjectEventArgs e)
 {
     e.CancelCommand();
 }
 private void PastingEventHandler(object sender, DataObjectEventArgs e)
 {
     // Prevent copy/paste
     e.CancelCommand();
 }
 //----------------------------------------------------------------------------//
 // Handlers                                                                   //
 //----------------------------------------------------------------------------//
 ////////////////////////////////////////////////////////////////////////////////
 /// <summary> </summary>
 private void OnCancelCommand(object sender, DataObjectEventArgs args)
 {
     args.CancelCommand();
 }
 /// <summary>
 /// Cancel ctrl-v (paste)
 /// </summary>        
 private void OnCancelCommand(object sender, DataObjectEventArgs e)
 {
     e.CancelCommand();
 }