Click here to Skip to main content
6,630,586 members and growing! (19,889 online)
Email Password   helpLost your password?
Languages » C# » Applications     Intermediate

Tool for Viewing Drag and Drop and Clipboard Formats

By Rui Lopes

A tool for viewing clipboard and drag and drop formats
C#, .NET, Win2K, WinXP, Visual Studio, Dev
Posted:12 Feb 2002
Updated:5 Mar 2002
Views:76,854
Bookmarked:53 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
8 votes for this article.
Popularity: 4.11 Rating: 4.56 out of 5

1

2

3
1 vote, 25.0%
4
3 votes, 75.0%
5

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


Member

Occupation: Web Developer
Location: Portugal Portugal

Other popular C# articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 2 of 2 (Total in Forum: 2) (Refresh)FirstPrevNext
Generalerror in main.exe PinmemberStephan Brunner2:56 26 Feb '02  
GeneralRe: error in main.exe PinmemberRui Godinho Lopes3:55 26 Feb '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 5 Mar 2002
Editor: Genevieve Sovereign
Copyright 2002 by Rui Lopes
Everything else Copyright © CodeProject, 1999-2009
Web17 | Advertise on the Code Project