Dim c As New Clipboard
c.SetText(TextArea1.Text)
Problem is I want to be able to paste it to another application or within the program using the built in Edit/Paste menu items.
How do I access the operating system’s default clipboard?
any text in textarea1 at the time that code is executed will be on the system clipboard… at least under OSX it is… and Windows should be exactly the same
I see, I think what happened was the copy to clipboard failed and when I pasted using ctrl+v I got the previous clipboard contents giving me the impression that the text was stored in a different instance of the clipboard.
What I am trying to do is create contextual menus to copy and paste selected text between two text areas on the same form.