读书人

How to determine is there any data

发布时间: 2011-12-28 22:45:21 作者: rapoo

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
}

读书人网 >C#

热点推荐