在c#里如何将字符串复制到剪切板上
如程序有个字符串为
string aa = "afasdfasf";
如何将这个字符串复制到剪切板里??
一解决问题立刻结贴。。绝不拖...
 谢谢

解决方案 »

  1.   

    System.Windows.Forms.Clipboard类Clipboard.SetDataObject("ZZZ",true);
      

  2.   

    System.Windows.Forms.Clipboard.SetData()
      

  3.   

    System.Windows.Forms.Clipboard类
      

  4.   

    在菜单里添加“tshark([email protected]) ”lovefootball(蟑螂)
      

  5.   

    先谢谢大家的热城关心了..继续问中..
    我暂时也是用这种通个控件的复制 tshark([email protected])
    我想知道lovefootball(蟑螂) 大哥的那个
    System.Windows.Forms.[Clipboard类]这个具体是什么啊??我找过都没有Clip之类的..
      

  6.   

    在我这只看到5个。。分别是
    using System.Windows.Forms.ComponentModel
    using System.Windows.Forms.Design
    using System.Windows.Forms.Layout
    using System.Windows.Forms.PropertyGridInternal
    using System.Windows.Forms.VisualStyles
      

  7.   

    我上网找到了..网址是(也给大家看看吧..)
    http://www.chinacode.com/doc/csharp/2006-07-03/216.html
    好。。结了..