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 7928571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:46:17+00:00 2026-06-03T19:46:17+00:00

I have a problem and I only came accross two or three posts around

  • 0

I have a problem and I only came accross two or three posts around the web about it: When I’m using the clipboard in a C# application (Clipboard.SetText or Clipboard.Clear), Chrome is randomly already using it, so my clipboard request fails.

System.Runtime.InteropServices.ExternalException: Requested Clipboard operation did not succeed. 
    at System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
    at System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay)
    at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
    at System.Windows.Forms.Clipboard.SetText(String text)

I close Chrome, it works, then reopen Chrome, and after some minutes, it still fails. I’m using the following code with a 1 second timer and GetOpenClipboardWindow(), another PInvoke :(, to confirm that this is really Chrome that is annoying me:

    [DllImport("user32.dll")]
    static extern IntPtr GetOpenClipboardWindow();

    [DllImport("user32.dll", SetLastError = true)]
    static extern int GetWindowThreadProcessId(IntPtr hWnd, out int 
    lpdwProcessId);


    IntPtr hwnd = GetOpenClipboardWindow();
    if (hwnd != IntPtr.Zero)
    {
        int processId;
        GetWindowThreadProcessId(hwnd, out processId);
        Process p = Process.GetProcessById(processId);
        listBox1.Items.Add(p.Modules[0].FileName);
    }

Does any of you already had this problem? Do you know why Chrome is stealing the clipboard?

[Edit]

At any of the Chrome team members: Dear developer, if you read this today, give me my Clipboard back as I have more rights than you on my Clipboard. I’ve been searching for two days because of you.

  • 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-06-03T19:46:21+00:00Added an answer on June 3, 2026 at 7:46 pm

    I’m afraid there is nothing left to do, If another process has the clipboard open, there is no way to free it until that process closes it.

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

Sidebar

Related Questions

I have a JQuery (using JQuery 1.4.2) problem that exhibits only in IE8 in
Problem: Only doGet gets called when I expect doPost to be called. I have
I have a strange problem that is only happening in a single location. I
I have a problem with tinyMCE but only on live environment from some reason
I have working registration script the only problem is that i do not know
I have a problem with a strange crash on iPad 5.0. This crash only
Note: This problem occurs only on Mac, on Windows works fine. I have a
I have the next problem: I need to process only 1 request at a
I have a reacurring problem. I code nice standards compliant code only to have
EDIT: I have realized the source of my problem. I only have count information

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.