Click here to Skip to main content
Licence 
First Posted 12 Feb 2002
Views 85,644
Downloads 1,914
Bookmarked 58 times

Tool for Viewing Drag and Drop and Clipboard Formats

By | 5 Mar 2002 | Article
A tool for viewing clipboard and drag and drop formats

Introduction

With this tool, you can see what exchange formats that a given clipboard or drag&drop object suports just by dragging it from other application or copying it to the clipboard.

Under the Hood

For getting the Clipboard IDataObject interface, I used the Clipboard class from the System.Windows.Forms namespace. The formats are retreived using the method GetFormats from the IDataObject interface.

The monitorization of Clipboard is handled with my component, ClipboardViewer. This component is using the SetClipboardViewer and ChangeClipboardChain Win32 Clipboard functions.

Installing & Building

  1. Download and extract the source code of this article
  2. Run the build.bat file from command prompt
  3. Now run the bin\main.exe and enjoy!

Do you have any questions or comments? Contact me!

History

  • 6 Mar 2002
    • The class ClipboardViewer is now in a separate file, Rgl.Components.CliboardViewer.cs, and in a different namespace, Rgl.Components
    • The ClipboardViewer class now correctly creates itself on Win9X/ME
  • 14 Feb 2002
    • First version

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Rui Lopes

Web Developer

Portugal Portugal

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalerror in main.exe PinmemberStephan Brunner1:56 26 Feb '02  
GeneralRe: error in main.exe PinmemberRui Godinho Lopes2:55 26 Feb '02  
Try to comment this line,
 
cp.Parent = (IntPtr)HWND_MESSAGE; // ...
 
from the method Create of private class ClipboardViewerWindow.
 

Are you using Win9x/ME?
 
----
Rui Lopes

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120529.1 | Last Updated 6 Mar 2002
Article Copyright 2002 by Rui Lopes
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid