I was checking out the 101 C# Samples, specifically Windows Forms - Use the Clipboard. I took a look at the code for a while, and I understand what the program is doing with the cut, copy, pasting via the file menu events using the clipboard. However, what I don't get is how is the program able to produce a context menu in the textbox area. When right clicking, the context pops up and allows to cut/copy/paste/delete, etc..
But the thing is, I don't see a context menu assigned to txtPaste in Visual Studio properties box. Even then, when I search for the cut/copy/paste code, I come up short. Nothing. What kind of magic is this? I know of the textbox.copy(), textbox.cut(), textbox.paste() functions for a textbox control box. But I don't see this being used at all
Even then, I tried viewing other sample codes to see if any code pops up screaming at me here I am. But no. Same thing. There's no site of the right click context menu with the cut/copy/paste selection. Am I missing something here? I want to get in on the secret invisible coding that allows cut/copy/paste
I was wondering if there exists a much quicker way to implement cut/copy/paste without going through the entire windows form's textboxes and manually creating each cut/copy/paste function. That sounds the stupid and hardway. There must be an easier way... Looks like the Using the Clipboard sample code does such thing (along with other code samples I've looked at), without showing a lot of coding for cut/copy/paste events
Help?