How to disable hotkeys in a textbox?

Asked

Viewed 65 times

-1

I have a kind of control System.Windows.Forms.TextBox populated in my form and it had some validations, as allow me to type only numbers, however I realized that if I use the shortcut key to paste a text (Ctrl + V), that field gets the information and I wouldn’t want that to happen.

Is there any way to block this behavior?

1 answer

0


One of the ways to solve this is to select the control change the property option Shortcuts Enabled for False

Browser other questions tagged

You are not signed in. Login or sign up in order to post.