Monogame Clipboard

Hello, so small problem…

I’m working on a Monogame project that doesn’t have access to System.Windows.Forms and I need to be able to access the contents of the Windows clipboard for easy pasting of text. I’ve looked around for other solutions and haven’t had much luck. Any ideas? Thanks!

Can you add a reference to System.Windows?

Yes, just not System.Windows.Forms.

What is your Project type? and what Framework are you targeting?

There are actually 2 classes to work with the clipboard, one with WinForms and another one with WPF.

the WPF one is in System.Windows. if you can include it, you can use it.

If you don’t want to use neither of them, you can still use DllImport:

Nevermind, I was able to add System.Windows.Forms via “Add Reference” in the project drop-down, just not with using, thanks!