Click here to Skip to main content
14,695,504 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
What do I do

c# sendmessage or postmessage ctrl+c
Posted
Comments
[no name] 20-Oct-15 5:02am
   
Elaborate your problem in detail. Did not get the problem you facing

If you are trying to do this in your own application, then all you need to do is use the Clipboard Class[^] - is has appropriate Set methods to do teh copy for you.

If you are trying to get another app to copy its content to the clipboard, then see here: http://stackoverflow.com/questions/235972/copy-and-modify-selected-text-in-different-application[^]
   
The difference between SendMessage and PostMessage is that Send is synchronous - directly calls the target windows' window procedure and does not return until it finished. Post and the other hand is asynchronous - it places the message in a queue linked to the target thread and returns immediately...

However it is only an explanation of the difference - your question lacks any useful information for meaningful answer...
   
My English is not very good description of not too clear

Thank you
   
Comments
Richard Deeming 21-Oct-15 10:29am
   
Don't post comments as new solutions. Use the "Have a Question or Comment?" button under the solution you want to reply to.

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