473,379 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 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 1124
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
7
by: lgbjr | last post by:
Hello All, Im using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
2
by: Richard L Rosenheim | last post by:
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
0
by: James Russo | last post by:
Hello, I have an application which requires an image to be retrived from the clipboard. So, I am writting a quick C# windows application to take images from a webcam and store a single frame on...
3
by: jay_kbvt | last post by:
Hi, Is there any way out that I can log copy/cut-paste events....? Thanks & Regards, Jaydeep.
7
by: Newbie | last post by:
How do I clear the clipboard in VB.NET 2003? TIA Newbie
15
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the...
1
by: Figmo | last post by:
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active...
20
by: Joe Duchtel | last post by:
Hello - I have the following code to get a bitmap from the clipboard and to save it to a *.png file ... Dim lData As IDataObject = Clipboard.GetDataObject() If...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.