为什么这样?messagebox也显示错误, 我需要做什么?

解决方案 »

  1.   

    在错误列表窗格提示是什么错误呢。如果错误列表没有出现,按ctrl+f5编译,在底部会显示错误列表窗格,打开,把具体错误复制出来。
      

  2.   

    No overload for method 'Show' takes 2 arguments No overload for method 'Show' takes 2 arguments 'System.Windows.Clipboard' does not contain a definition for 'SetDataObject'
      

  3.   

    Clipboard.SetObjectData
    MessageBox.Show("Error " + ex.Message);
    or
    MessageBox.Show("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
      

  4.   

    Clipboard.SetObjectData
    好像还是报错呀。
      

  5.   

    System.Windows.Forms.Clipboard.SetDataObject呢
      

  6.   

    是指在页头引用么, 可是没有Form的 NAMESPACE
      

  7.   

    Error 1 The type or namespace name 'Forms' does not exist in the namespace 'System' (are you missing an assembly reference?)
      

  8.   


    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Automation
    using System.Windows.Navigation;
    using System.Windows.Resources;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Ink;
    using System.Windows.Input;
    using System.Windows.Interactivity;
    using System.Windows.Interop;
    using System.Windows.Markup;
    using System.Windows.Media;
    using System.Windows.Shapes;
    using System.Windows.Threading;
    所有提示可引用的命名空间都在这里的。感觉好少啊,难道是版本问题?可是我下载framework4.5.微软提示我的vs2012自动带4.5。不让我下肿么办呀><~
      

  9.   

    发现好像是缺少程序集:  PresentationCore(在 PresentationCore.dll 应该怎么添加?
      

  10.   

    Windows Phone的ClipBoard只能SetText不能SetDataObject
      

  11.   


    据说是因为.net framework4.5是开发桌面版程序用的,wp用不了,只能用简化的clipboard,所以也就只能复制粘贴文字。求官方进一步解释。不然拿着framework4.5用着古老的silverlight4的某些方法,还没有任何标注说明!这像话么坑死人了