I want to detect the paste so I know when the user wants to paste something in the textbox. I don't want to mess with the clipboard if the user has copied some text without intending to paste it in my textbox.
It detects when the user tries to paste non-numeric data into the textbox. There was a class in this program called TextBoxOnPaste.vb (I added this to my project). In my form_load, I added the code
Ok, for your own applications paste operations listening to WM_PASTE message is clever. I thought you meant detecting this system wide in relation to your other question about creating a system utility that monitors clipboard.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.