473,396 Members | 2,061 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,396 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 1126
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, I¡¯m 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.