public string GetText() { string text = string.Empty; Thread thread = new Thread(() => text = Clipboard.GetText()); thread.SetApartmentState(ApartmentState.STA); thread.Start(); thread.Join(); return text; }