Question

I am attempting to paste a value from a separate program into a TextEdit control and it doesn't do anything when I use ctrl-v. However, I am able to use right click and paste and that is successful.

Is there a AllowShortcutKeys = true that I am missing?

Was it helpful?

Solution

If you are using Ctrl+V shortcut for a menu item and the handler of that menu item doesn't do anything, it might precede the functionality of the TextEditor.

Also, if your form is an MDI child, you might want to manually do the copy/paste thing following the instructions of this article http://msdn.microsoft.com/en-us/library/4s6dtf7z.aspx

OTHER TIPS

Do you have any non-DX controls on the form where you can paste successfully? It's possible that you've got an event on the form that is eating the paste keystroke. Specifically, check the KeyPreview property of the form, and the KeyPress event.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top