How to prevent CTRL+V in a specific form - 2009SP1

NabucoNabuco Member Posts: 65
Does anybody know whether it is possible to prevent users from using CTRL+V (paste) in a specific form and if - how to do?

Thanks in advance

Answers

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    There exists a property PasteIsValid on table-level which can be set to false. Don't think it's available on form-level though.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • vaprogvaprog Member Posts: 1,141
    No, I don't think you can prevent this.

    The PastIsValid property Luc mentioned is available in a Table level only and applies to complete records, not individual fields.
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    You could create a MenuButton and set ShortCutKey of an empty MenuItem to Ctrl+V. As long as this form is in focus it won't let you paste anything into this form.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • NabucoNabuco Member Posts: 65
    Thanks a lot - The empty menubutton Works perfectly
  • vaprogvaprog Member Posts: 1,141
    This solution does provide no more enforcement than just telling the user to not do it. It is just a minor obstacle.
    Have you ever heard about Shift+Ins or the right click context menu?
Sign In or Register to comment.