I'm attempting to create a simple program with a several buttons, each of which is simply meant to copy text to the clipboard for easy pasting elsewhere. The method I have set up now copies the text from a Rich Text file over to a RichTextBox in the form, then copies the content of that RichTextBox to the clipboard.
It's working to an extent where it will copy to the clipboard, and allow me to paste into Wordpad, but nowhere else. I've tried different TextDataFormats, and at best I can get it to paste anywhere, but with the goofy RTF markup.
I've seen other posts on the web with the same issue, yet none of the solutions suggested seem to help out. I'm using Visual Studio Community 2017, if that helps out. Any suggestions would be greatly appreciated, as I've battled with this for a few days now on and off, and should I be able to get this working, it would save a great deal of time going forward~
This would be the method I'm attempting to have the button load the text to the clipboard when clicked~
For reference, I'm running Visual Studio Community 2017~