问题
Basically I want to start up a c# console application by selecting text from say a web page or word or something, drag the text over the c# application's .exe file, and retrieving the text in the console application.
So for example I select the word "Hello" from a webpage. I then drag it over the .exe icon for the c# project. The C# project then reads the "Hello" I dragged and dropped and does some processing to it.
I'm aware of how to drag and drop files in c# but the I cant copy text over the .exe icon. Is there a way to alter the properties of the project so it will accept text being dragged and dropped over it? Is what I want to do even possible?
The reason I wanted a console app was because I was trying to implement the functionality of a 3rd party library on text by just dragging the text over the applications icon.
来源:https://stackoverflow.com/questions/20214150/drag-and-drop-text-to-c-sharp-console-application-exe