Answers for "c# read clipboard text"

C#
1

c# put string to clipboard

using System.Windows.Forms; //required

Clipboard.SetText("your string");

//FOR .NET CORE
Install-Package TextCopy

TextCopy.ClipboardService.SetText("Text to place in clipboard");
Posted by: Guest on August-03-2021
0

c# wpf get clipboard text

//for wpf
using System.Windows;

Clipboard.GetText() //gets Text as string
Clipboard.SetText("hello"); //sets Clipboard to "hello"
Posted by: Guest on January-10-2022

C# Answers by Framework

Browse Popular Code Answers by Language