MyException - 我的异常网
当前位置:我的异常网» C# » How to determine is there any data stored on the

How to determine is there any data stored on the clipboard in C#该如何解决

www.MyException.Cn  网友分享于:2013-12-29  浏览:11次
How to determine is there any data stored on the clipboard in C#?
How   to   determine   is   there   any   data   stored   on   the   clipboard   in   C#?
Many   thanks   for   your   replying.


------解决方案--------------------
Using "Clipboard.GetDataObject " method.
Sample code as follows:
IDataObject idata = Clipboard.GetDataObject();
if( idata != null )
{
//there are some data stored in clipboard
}

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有