Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy to the clipboard in F#?

And more specifically, in FSI?

like image 286
Peter Avatar asked Nov 24 '09 17:11

Peter


People also ask

How do you copy to a clipboard?

Open the file that you want to copy items from. Select the first item that you want to copy, and press CTRL+C. Continue copying items from the same or other files until you have collected all of the items that you want. The Office Clipboard can hold up to 24 items.

How do I find the copy clipboard?

To get to your clipboard history at any time, press Windows logo key + V. From the clipboard history, you can paste and pin frequently used items by choosing an individual item from your clipboard menu.

Where is clipboard on s22?

Step 1: Pull up Gboard by tapping a text field. Tap the three-dot menu icon and select Clipboard. Step 2: Tap on Turn on Clipboard. Optionally, you can drag and drop the clipboard to the toolbar for easier access.


1 Answers

You can programatically control the clipboard using the Clipboard class in the System.Windows.Forms namespace. (The required assembly is brought in by default to FSI.)

open System.Windows.Forms
Clipboard.SetText("Hello from FSI!")
like image 141
Chris Smith Avatar answered Sep 16 '22 13:09

Chris Smith