首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2011-12-28 
How to determine is there any data stored on the clipboard in C#?Howtodetermineisthereanydatastored

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
}

热点排行