using System.Windows.Forms; [STAThread] private static void Main(string[] arg) { Thread thread = new Thread(() => Clipboard.SetText("Test!")); thread.SetApartmentState(ApartmentState.STA); //Set the thread to STA thread.Start(); thread.Join(); //Wait for the thread to end }