Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4031260
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:34:31+00:00 2026-05-20T11:34:31+00:00

I understand that developers of 3rd party apps don’t necessarily want me to access

  • 0

I understand that developers of 3rd party apps don’t necessarily want me to access their clipboard data beyond, in the best case, a text summary like what I get when pasting from Word to Notepad. Nevertheless, suppose I want to grab the underlying clipboard contents and try to extract something useful for myself. How do I go about it? Does this involve messing with other processes’ memory? Or trying to detect and extract properties from clipboard object using Reflection in dotnet? Or how would you approach this?

ETA: ok, for the less abstractly minded, let’s consider an example: in Visual Studio forms designer I select a few widgets and do copy. Now I would like to parse the clipboard to find the names, locations and sizes of the widgets I just copied (I don’t want to write plugins for visual studio etc, I want to specifically obtain info from clipboard). I know that this is theoretically possible simply because it is possible to copy-paste widgets (including their names, locations and other properties) between 2 instances of Visual Studio process.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:34:31+00:00Added an answer on May 20, 2026 at 11:34 am

    Well, you can just read the data right out of System.Windows.Clipboard. It’s that simple!

    You might need to work at some of the more esoteric data formats, but once the data is in the clipboard, you are free to read it. For Word you might find that the HTML format that it places in the clipboard quite amenable to your needs.

    There’s no security or privacy issues here because the user has consented to run your program. It would be wrong to allow you to read the clipboard of another logged in user, but you can’t do that.


    You’ve updated the question and now are asking something a little more specific. So I copied some widgets to the clipboard and then used the Clipboard Viewer to see what formats were in there. The one that jumped out was CF_DESIGNERCOMPONENTS_V2. A quick websearch for this lead me to this website:

    http://www.windowsdevelop.com/windows-forms-designer/for-designer-copycutpaste-what-type-data-format-does-ms-set-the-clipboard-dataobject-to-8507.shtml

    There is some code there, apparently from Reflector, which shows how the designer handles the Copy command:

    protected void OnMenuCopy(object sender, EventArgs e)
    {
          if (this.SelectionService != null)
          {
                Cursor cursor1 = Cursor.Current;
                try
                {
                      Cursor.Current = Cursors.WaitCursor;
                      ICollection collection1 = this.GetCopySelection();
                      collection1 = this.PrependComponentNames(collection1);
                      IDesignerSerializationService service1 = (IDesignerSerializationService) this.GetService(typeof(IDesignerSerializationService));
                      if (service1 != null)
                      {
                            object obj1 = service1.Serialize(collection1);
                            MemoryStream stream1 = new MemoryStream();
                            new BinaryFormatter().Serialize(stream1, obj1);
                            stream1.Seek((long) 0, SeekOrigin.Begin);
                            byte[] buffer1 = stream1.GetBuffer();
                            IDataObject obj2 = new DataObject("CF_DESIGNERCOMPONENTS_V2", buffer1);
                            Clipboard.SetDataObject(obj2);
                      }
                      this.UpdateClipboardItems(null, null);
                }
                finally
                {
                      Cursor.Current = cursor1;
                }
          }
    }
    

    This ought to get you started!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For reasons that only the developers can understand, Firefox will create and open .url
I understand that according to Rails philosophy, data integrity checks should be done at
I understand that Microsoft uses this template when versioning their products: Major.Minor.Build.Revision. Major is
I understand that: '\n' // literally the backslash character followed by the character for
I understand that JVM and CLR were designed as stack-based virtual machines. When JIT
I understand that the em measurement is a relative unit for font-size, relative to
I understand that this question may be subjective, this is why I need an
I understand that applications under the same domain name can talk to each other
I understand that storage history is something that is better to keep for vcs
I understand that we can set the various style attributes from code behind using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.