登 录
public static bool SetTextToClipboard(string strText) { if ( strText != null && strText.Length > 0 ) { try { System.Windows.Forms.DataObject dataObject = new System.Windows.Forms.DataObject(); dataObject.SetData(System.Windows.Forms.DataFormats.UnicodeText , true, strText ); System.Windows.Forms.Clipboard.SetDataObject(dataObject, true); return true; } catch{} } return false; }
抱歉!评论已关闭.