Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
Hi,
In our application, we need to copy the text from some other application into clipboard for processing the data.
Now, if I have copied anything into clipboard before my main application has started copying from the other application, I lose that data (could be anything - string, image or a file).
I tried using Clipboard.SetDataObject function to set the original data back into clipboard but it throws an exception ‘Requested Clipboard operation did not succeed.’
Posted
Comments
Richard MacCutchan 25-Mar-11 6:47am    
Try posting a snippet of the code you are using (for both the Get and Set operations), and also any more detail from the exception.
avigodse 29-Mar-11 10:20am    
Check if your application do not have any background thread to clear clipboard.
Other possibilities can be having outer process that is clearing clipboard in background.
RoopikaS 30-Mar-11 0:29am    
The issue is it, we are not sure as in what the user will copy, so it happens that there might be the loss of data, when we try to recover that data.How do we go for that?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900