C#复制、粘贴文本信息到剪贴板!
摘要:
复制:privatevoidbutton1_Click(objectsender,System.EventArgse){ //Takestheselectedtextfromatextboxandputsitontheclipboard. if(textBox1.SelectedText!=”") Clipboard.SetDataObject(textBox1.SelectedText); }粘贴:privatevoidbutton2_Click(objectsender,System.EventArgse){ //DeclaresanIDataObjecttoholdthedat 阅读全文
posted @ 2012-08-02 16:02 Jason_liu 阅读(404) 评论(0) 推荐(0) 编辑