`

file drop in winform

阅读更多

drop and drag in winform is not really convenient comparing with wxPython.

 

As the target of drop, you must implement two functions to response two events separately:

1: dropenter

2: dragdrop

 

in the functions of responding dragdrop

you may write:

array<File^>^ fileList = static_cast<array<File^>^>(e->Data->GetData(DataFormats::FileDrop);

 

and then do what yo want to do to this  file list.

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics