Drag and Drop Text to C# Console Application exe

爱⌒轻易说出口 提交于 2019-12-11 07:07:26

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!