Click to See Complete Forum and Search --> : An interesting question about Rich Text Boxes and the way that they copy and paste


rino_2
February 7th, 2000, 01:55 PM
Hi,

I’m creating a special text editor for the creation of Java files only. This text editor uses one Rich Text Box, which is coursing me a little bit of bother. I have added a few menus for copying and pasting etc.. and I have gave these menus the standard shortcut keys e.g. Paste = Ctrl+V. So, when I press Ctrl+C (copy) the code behind the menu is executed and the selected text is copied to the clipboard, the Rich text box also uses that shortcut key and copies the text to the clipboard, thus the text is copied to the clipboard twice! As you have probably guessed, I don’t want the text copying to the clipboard twice. I need some way to stop the Rich Text Box copying its text to the clipboard and let my code behind the menu do all the talking. Is there somebody out there who can help?

Thanks