471,318 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

Monitoring the clipboard?

Is there a way in .NET to monitor the clipboard? Specifically, I'm looking
to have an event triggered whenever any program pastes anything to the
clipboard.

TIA,

Richard Rosenheim
Jul 21 '05 #1
2 1058
Hi,

It can't be done using only managed code but you can use the P/Invoke and
the Windows API.

I have an article and sample code on how to do this here:
http://www.radsoftware.com.au/articl...rdmonitor.aspx

--
Ross Donald
..NET Code Generation - http://www.radsoftware.com.au/codegenerator/
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:eF**************@tk2msftngp13.phx.gbl...
Is there a way in .NET to monitor the clipboard? Specifically, I'm
looking
to have an event triggered whenever any program pastes anything to the
clipboard.

TIA,

Richard Rosenheim


Jul 21 '05 #2
Thanks for the reply, and the link. It's looks great.

Richard Rosenheim

"Ross Donald" <ro**@radsoftware.com.auNOSPAM> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

It can't be done using only managed code but you can use the P/Invoke and
the Windows API.

I have an article and sample code on how to do this here:
http://www.radsoftware.com.au/articl...rdmonitor.aspx

--
Ross Donald
.NET Code Generation - http://www.radsoftware.com.au/codegenerator/
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:eF**************@tk2msftngp13.phx.gbl...
Is there a way in .NET to monitor the clipboard? Specifically, I'm
looking
to have an event triggered whenever any program pastes anything to the
clipboard.

TIA,

Richard Rosenheim

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by lgbjr | last post: by
2 posts views Thread by Richard L Rosenheim | last post: by
3 posts views Thread by jay_kbvt | last post: by
7 posts views Thread by Newbie | last post: by
15 posts views Thread by Peter Duniho | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.