drag and drop on NotifyIcon in tray in C#

前端 未结 3 1928
悲&欢浪女
悲&欢浪女 2020-12-16 05:44

I am trying to create a C# application that runs in tray where I can drop files on it\'s icon. Is there any way to get the path of the file dropped on the System Tray icon?

3条回答
  •  天涯浪人
    2020-12-16 06:14

    It actually is possible to do with a slightly hacky method. Fluffy App does this for its file uploader. It uses Spifftastic which uses a pretty neat little method to identify the location of the tray icon. Then a transparent window is placed over the location of the icon and used as the actual drop target, but to the end user it all appears to be dropping the file on the icon.

提交回复
热议问题