在Web程序中调用系统剪贴板出错! //调用剪贴板
System.Windows.Forms.IDataObject iData = System.Windows.Forms.Clipboard.GetDataObject();
if (iData.GetDataPresent(System.Windows.Forms.DataFormats.Text))
{
CoypStr = (string)iData.GetData(System.Windows.Forms.DataFormats.Text);
}
运行时 显示iData为空,有啥解决方法不?Web剪贴板;未将对象实例化
System.Windows.Forms.IDataObject iData = System.Windows.Forms.Clipboard.GetDataObject();
if (iData.GetDataPresent(System.Windows.Forms.DataFormats.Text))
{
CoypStr = (string)iData.GetData(System.Windows.Forms.DataFormats.Text);
}
运行时 显示iData为空,有啥解决方法不?Web剪贴板;未将对象实例化
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货